Reflect changes in admin page Django -
i have model , had these attributes
first name last name email
i altered model include additional attribue : address , looks this
first name last name email address
i using mysql database , changes reflected in table in database , changes not reflected in django admin tables not have new column called address.
i know has overriding admin template in django cant seems able , can guide me
thanks
in admin.py
file in app directory, there subclass of modeladmin registered model. make sure address field listed in either fields
or fieldsets
property of class, , make sure not listed in exclude
list on class.
ref: https://docs.djangoproject.com/en/dev/ref/contrib/admin/
Comments
Post a Comment