#19793: global name 'timezone' is not defined
-------------------------------------+-------------------------------------
     Reporter:  anonymous            |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |                  Version:
    Component:  Documentation        |  1.5-alpha-1
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  global name          |             Triage Stage:
  'timezone' is not defined          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by nilu214):

 class Poll(models.Model):
     # ...
     def was_published_recently(self):
         return self.pub_date >= (timezone.now() -
 datetime.timedelta(days=1))

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19793#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.4423cc2cecb00cd3d7ce9e77e23ce89f%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to