tickets: 89
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
89 | 2005-07-19 18:06:39 | 2006-04-23 22:52:28 | 2022-03-06 03:19:41.329410 | Unreviewed | closed | contrib.admin | defect | minor | 1.1 | fixed | DateTimeFields with auto_now_add = True in admin | Expose a DateTimeField with auto_now_add = True to the admin, try to add a new object. You can see the date field with empty values (no calendar, etc). Save the object, you'll get a validation error. Example model: {{{ class Article(meta.Model): fields = ( meta.CharField('title', 'title', maxlength=200, core=True), meta.TextField('data','data'), meta.DateTimeField('date','date',auto_now_add=True), ) admin = meta.Admin( fields = ( (None, {'fields': ('title', 'date','data',)}), ), ) }}} If i un-expose the 'date' field from admin, everything works fine. | adrian | philippe.normand@gmail.com | date | 0 | 0 | 0 | 0 | 0 | 0 |