django / django-localflavor

Country-specific Django helpers, formerly of contrib fame
https://django-localflavor.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
833 stars 292 forks source link

localflavor fields not showing up #475

Closed tambaTech closed 2 years ago

tambaTech commented 2 years ago

Hello

Can i please get som help, i'm kinda a newbie in Django.

Here is my Model: the fields are not showing up in the Django Administration. What i'm i doing wrong? please help

from localflavor.dk.forms import DKMunicipalitySelect, DKPostalCodeField

class Location(models.Model): address_1 = models.CharField(max_length=128, blank=True) address_2 = models.CharField(max_length=128, blank=True) city = models.CharField(max_length=64) state = DKMunicipalitySelect() postal_code = DKPostalCodeField()

claudep commented 2 years ago

Sorry but this is not a help channel, it's a location to report bugs against the program. I suggest you go to Django forums to get help.