I have three models: Person, Client, Member
Person is a base model, Client and Member are profiles for Person.
class Person(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(
verbose_name=_('email address'),
max_length=255,
unique=True,
)
class Client
Hi,
Django doesn't really provide a way to create a subclass from an already
existing object in the admin. It's actually pretty hard to do even in the
code. So for that reason I'd recommend the non subclass with the
OneToOneField.
Actually, if I were doing it, this is what I would do:
class U
2 matches
Mail list logo