1
Can someone help me fix why the category names are not being displayed in my admin console?
from django.db import models
from django.conf import settings
class Cad_pref(models.Model):
nomepref = models.CharField("Nome Prefeitura:", max_length=200)
endpref = models.CharField("Endereço Prefeitura:", max_length=200)
numpref = models.CharField("Número Prefeitura:", max_length=10)
telpref = models.CharField("Telefone Prefeitura:", max_length=15)
cnpjpref = models.CharField("CNPJ:", max_length=15)
Have you tried implementing the method
__str__
with the value you want?– Woss
I’m sorry to ignore, I searched on Django’s website and did not see about. This panel is "default" of it?
– Breno