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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -