First created an application and then
in the settings.py set the constant AUTH_USER_MODEL = "my_app_name.User"
and do makemigrations then migrate for the very first time. your custom
User table does not exist in the database that's why the exception is
thrown.
On Sun, 11 Jun 2023, 19:00 Alexandru
Hi, when I try to access an attribute of a target model in a many to many
relationship, I get an error : AttributeError: 'ManyRelatedManager' object
has no attribute 'full_name'
so, how to do ?
An exemple:
Class Person(models.Model):
full_name = models.CharField(max_length=200)
email =
2 matches
Mail list logo