forked from 0x2620/pandora
use python_2_unicode_compatible
This commit is contained in:
parent
72fdc8ed4d
commit
f0a4aba751
24 changed files with 130 additions and 53 deletions
|
|
@ -4,6 +4,8 @@ from __future__ import division, print_function, absolute_import
|
|||
|
||||
from django.db import models, transaction
|
||||
from django.contrib.auth.models import User
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
import ox
|
||||
from oxdjango import fields
|
||||
|
||||
|
|
@ -16,6 +18,7 @@ from title.models import get_title_sort
|
|||
from . import managers
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Event(models.Model):
|
||||
'''
|
||||
Events are events in time that can be once or recurring,
|
||||
|
|
@ -57,7 +60,7 @@ class Event(models.Model):
|
|||
items = models.ManyToManyField(Item, blank=True, related_name='events')
|
||||
annotations = models.ManyToManyField(Annotation, blank=True, related_name='events')
|
||||
|
||||
def __unicode__(self):
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue