Say I have some third party application that I want to subclass, lets call it ThirdPartyClass
. I want to subclass this to create a genereal user, and then have the flexibility to subclass the general user for more specific ones. It would look something like this:
models.py
class GeneralUser(ThirdPartyClass):
user = models.OneToOneField(
settings.AUTH_USER_MODEL)
# general fields would go here
class SpecificUser(GeneralUser):
# specific fields would go here
Clearly, this will not work as I want to subclass AbstractUser
? Maybe that is not even the correct way to approach this. Is there a solution to this?
Side Note: The third party-application I have in mind can be found here. Regardless, hopefully this answer can be solved without specifics on the third party app, but if there is no other choice, then whatever gets the job done will be acceptable! Thanks!