You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The admin class should live in base apps. It will be derived from ModelAdmin class and will use exclude to exclude created and modified fields.
This is so that anyone adding an object from the admin panel should not be shown in these fields as these are handled internally by Django before saving an object.
Name of the class should be TimeStampedAdmin and it should live in base/admin.py
The text was updated successfully, but these errors were encountered:
taranjeet
changed the title
Create a ModelAdmin mixin in base app to exclude created and modified fields
Create a ModelAdmin class in base app to exclude created and modified fields
Nov 21, 2016
The admin class should live in base apps. It will be derived from ModelAdmin class and will use exclude to exclude
created
andmodified
fields.This is so that anyone adding an object from the admin panel should not be shown in these fields as these are handled internally by Django before saving an object.
Name of the class should be
TimeStampedAdmin
and it should live inbase/admin.py
The text was updated successfully, but these errors were encountered: