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
It is enough to remove created_on from the exclude (exclude = ['cloned_from']). created_on field is defined as auto_now_add which makes it automatically editable=False, so it is not included in the form generated for admin.
The text was updated successfully, but these errors were encountered:
When I enter admin panel I get an error saying that "exclude refers to field created_on that is missing from the form."
The problem is caused by the following definition (admin.py):
It is enough to remove
created_on
from theexclude
(exclude = ['cloned_from']
).created_on
field is defined asauto_now_add
which makes it automaticallyeditable=False
, so it is not included in the form generated for admin.The text was updated successfully, but these errors were encountered: