Good afternoon, So I am trying to give permissions that already comes in django to an ordinary user who even belonging to the group can not access the models that is granted to it. Someone had this problem of not viewing models in admin. version of python 2.7 and django 1.10
I already have the conf settings like 'django.contrib.auth', 'django.contrib.auth.middleware.AuthenticationMiddleware'
no models I have only:
class Paciente(models.Model):
nome = models.CharField(max_length=60)
data_nascimento = models.DateField()
def __str__(self):
return self.nome
class Meta:
verbose_name = "Paciente"
verbose_name_plural = "Pacientes"
And in the admin I have:
class PacienteAdmin(ModelAdmin):
list_display = ('nome','data_nascimento')
admin.site.register(Paciente, PacienteAdmin)
Just this and still without visualization of it. Thank you in advance.