Replace django-timezones w/ django-timezone-field
django-timezones does not support Python 3. django-timezone-field is a revived fork that does. For some unknown reason django-timezone-field's TimeZoneField does not like positional arguments, so I changed to first argument to a kwarg "verbose_name".
This commit is contained in:
parent
f7caf14357
commit
1b51ef2ad8
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ django-model-utils==2.2
|
|||
django-reversion==1.8.5
|
||||
django-sitetree==1.2.1
|
||||
django-taggit==0.12.2
|
||||
django-timezones==0.2
|
||||
django-timezone-field==1.2
|
||||
django-user-accounts==1.0
|
||||
easy-thumbnails==2.2
|
||||
html5lib==0.999
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from django.db import models
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from timezones.fields import TimeZoneField
|
||||
from timezone_field import TimeZoneField
|
||||
|
||||
|
||||
CONFERENCE_CACHE = {}
|
||||
|
@ -19,7 +19,7 @@ class Conference(models.Model):
|
|||
end_date = models.DateField(_("end date"), null=True, blank=True)
|
||||
|
||||
# timezone the conference is in
|
||||
timezone = TimeZoneField(_("timezone"), blank=True)
|
||||
timezone = TimeZoneField(blank=True, verbose_name=_("timezone"))
|
||||
|
||||
def __unicode__(self):
|
||||
return self.title
|
||||
|
|
Loading…
Reference in a new issue