python 2 compatibility
This commit is contained in:
parent
672073a6cd
commit
1842803379
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ from django.utils.html import escape
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
from django.contrib.sites.models import Site
|
from django.contrib.sites.models import Site
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
|
from django.utils.encoding import python_2_unicode_compatible
|
||||||
|
|
||||||
from colorful.fields import RGBColorField
|
from colorful.fields import RGBColorField
|
||||||
|
|
||||||
|
@ -216,6 +217,7 @@ class Issue(models.Model):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.title
|
return self.title
|
||||||
|
|
||||||
|
@python_2_unicode_compatible
|
||||||
class Event(models.Model):
|
class Event(models.Model):
|
||||||
|
|
||||||
UNKNOW = 0
|
UNKNOW = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue