django-localflavor fields not showing up in Django admin models? -
i trying implement django-localflavors django app.
i import usstateselect & uszipcodefield @ beginning of models.py , include them field in model along other fields, so:
from localflavor.us.forms import usstateselect, uszipcodefield ... class mymodel(models.model): ... state = usstateselect() zip_5 = uszipcodefield()
however, when go django admin , try create new model object, see every other field wrote (charfields, etc.) except of localflavor fields. not showing @ input field in model object form. have done migrations on database not issue.
am misunderstanding how use django-localflavor? read in answer different post localflavor doesn't create input fields, stores data... i've read let input data. @ point confused. appreciated!
i think looking model fields. form fields used when building own forms (usually outside admin, such contact form). localflavor has couple fields should need. note these charfield
s have validation make sure follow desired format.
Comments
Post a Comment