from django.contrib.auth.models import AbstractUser, User
from django.conf import settings
from django.db import models


class CustomUser(AbstractUser):

    def __str__(self):
        return self.email


class Profile(models.Model):
    user = models.OneToOneField(CustomUser, on_delete=models.CASCADE)
    profile_image = models.ImageField(default='default.jpg', upload_to=
        'profile_pics')

    def __str__(self):
        return f'{self.user.username} Profile'

4dfe67796ee8d9db73352ee70aa757a397370cb9
<mask token>


class Profile(models.Model):
    user = models.OneToOneField(CustomUser, on_delete=models.CASCADE)
    profile_image = models.ImageField(default='default.jpg', upload_to=
        'profile_pics')

    def __str__(self):
        return f'{self.user.username} Profile'

<mask token>


class CustomUser(AbstractUser):
    <mask token>


class Profile(models.Model):
    user = models.OneToOneField(CustomUser, on_delete=models.CASCADE)
    profile_image = models.ImageField(default='default.jpg', upload_to=
        'profile_pics')

    def __str__(self):
        return f'{self.user.username} Profile'

<mask token>


class CustomUser(AbstractUser):

    def __str__(self):
        return self.email


class Profile(models.Model):
    user = models.OneToOneField(CustomUser, on_delete=models.CASCADE)
    profile_image = models.ImageField(default='default.jpg', upload_to=
        'profile_pics')

    def __str__(self):
        return f'{self.user.username} Profile'

from django.contrib.auth.models import AbstractUser, User
from django.conf import settings
from django.db import models


class CustomUser(AbstractUser):

    def __str__(self):
        return self.email


class Profile(models.Model):
    user = models.OneToOneField(CustomUser, on_delete=models.CASCADE)
    profile_image = models.ImageField(default='default.jpg', upload_to=
        'profile_pics')

    def __str__(self):
        return f'{self.user.username} Profile'
