Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it is possible to instantiate AbstractUser within your model class located in models.py in Django. You can do this using the following code:

from django.contrib.auth.models import AbstractUser

class MyUser(AbstractUser):
    # add your custom fields and methods here

This creates a custom user model called MyUser that inherits from AbstractUser. You can then modify MyUser by adding your own custom fields and methods.