Skip to content

Commit

Permalink
update for new django signals changes
Browse files Browse the repository at this point in the history
git-svn-id: https://django-timezones.googlecode.com/svn/trunk@26 86ebb30f-654e-0410-bc0d-7bf82786d749
  • Loading branch information
dougn committed Aug 7, 2008
1 parent 422f8c1 commit 01b9efb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions timezones/fields.py
Expand Up @@ -3,7 +3,6 @@
from django.conf import settings
from django.utils.encoding import smart_unicode, smart_str
from django.db.models import signals
from django.dispatch import dispatcher

from timezones import forms

Expand Down Expand Up @@ -139,4 +138,4 @@ def set_dtz_field(model_instance, dt):

## RED_FLAG: need to add a check at manage.py validation time that
## time_zone value is a valid query keyword (if it is one)
dispatcher.connect(prep_localized_datetime, signal=signals.class_prepared)
signals.class_prepared.connect(prep_localized_datetime)

0 comments on commit 01b9efb

Please sign in to comment.