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 charfields have validation make sure follow desired format.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -