use python_2_unicode_compatible

This commit is contained in:
j 2017-03-03 08:56:35 +01:00
commit f0a4aba751
24 changed files with 130 additions and 53 deletions

View file

@ -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