Hi, I have the following lines in my model: entry_date = models.DateTimeField(auto_now_add=True) pub_date = models.DateTimeField('date published', blank=True, null=True) last_change_date = models.DateTimeField(auto_now=True)
Basically, I want the entry date to be added automatically, and last change date to be updated on every save(), just as described in documentation. The problem is that those fields don't appear on the admin page. I tried with explicitly setting those fields in my admin class, per Tutorial: class EcoPointAdmin(admin.ModelAdmin): fieldsets = [ ('Details', {'fields': ['title', 'description', 'type', 'status']}), ('Geo data', {'fields': ['latitude', 'longitude']}), ('Dates', {'fields': ['entry_date', 'pub_date', 'last_change_date']}), ] But now I get the error shown below. Any chance to have those fields on admin page, without creating my custom admin? I couldn't find anything useful in the archives. Thanks, DC, Django novice The error msg: ImproperlyConfigured at /admin/ecopoint/ecopoint/3/ 'EcoPointAdmin.fieldsets[2][1]['fields']' refers to field 'entry_date' that is missing from the form. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.