Hello everyone,
I have read the documentation for create a user profile
<http://mezzanine.jupo.org/docs/user-accounts.html> and I have made a test
followed the documentation example. This is my test:
*project_folder/apps/chefinfo/models.py*
class Chef(models.Model):
user = models.OneToOneField("auth.User")
cell_phone = models.CharField(max_length=20, verbose_name=_("Cell phone"
))
about_me = RichTextField(null=True, blank=True, verbose_name=_("About
me"))
I have also try
user = models.OneToOneField(User, on_delete=models.CASCADE)
*project_folder/**project_folder/settings.py*
INSTALLED_APPS = (
#...
"apps.chefinfo",
"mezzanine.accounts",
#...
)
ACCOUNTS_PROFILE_MODEL = "apps.chefinfo.Chef"
and nothing has changed, the admin and website forms are rendered as before
make changes. Why?
now I'm going to do a test following the django documentation for extending
the User model
<https://docs.djangoproject.com/en/1.11/topics/auth/customizing/#s-extending-the-existing-user-model>,
but I presume I'll have problems with the admin.
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.