#17294: django.utils.timezone functions raise AttributeError if DateTimeField allows null -------------------------------------+------------------------------------- Reporter: pressureman | Owner: aaugustin Type: Bug | Status: new Component: | Version: SVN Internationalization | Resolution: Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by pressureman): Correct. My model looks like this: {{{ class Device(models.Model): ... last_poll = models.DateTimeField(blank=True, null=True) ... }}} When a Device object is created, it may have the value None in the last_poll field, to be populated at some later stage. -- Ticket URL: <https://code.djangoproject.com/ticket/17294#comment:3> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.