#1030: auto_now_add is broken for edit_inline field
------------------------+---------------------------------------------------
   Reporter:  titoo     |                Owner:  adrian         
     Status:  reopened  |            Component:  Admin interface
    Version:  SVN       |           Resolution:                 
   Keywords:            |                Stage:  Accepted       
  Has_patch:  1         |           Needs_docs:  0              
Needs_tests:  1         |   Needs_better_patch:  1              
------------------------+---------------------------------------------------
Comment (by gwilson):

 Replying to [comment:25 [EMAIL PROTECTED]:
 > LazyDate does not seem to be present at all in the current SVN nor does
 the posted patch work. Any suggestions?
 
 `LazyDate` was removed a little while back.  But now the `default`
 parameter takes callables, so you can do this:
 
 {{{
 from datetime import datetime
 ...
 time_added = meta.DateTimeField(default=datetime.now(), blank=True,
 editable=False)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/1030#comment:26>
Django Code <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to