from django.db import models
from django.contrib.auth.models import User 


class UserProfile(models.Model):
    user        = models.OneToOneField(User,related_name="user_profile",on_delete=models.CASCADE)
    profile_pic = models.ImageField(upload_to="profile_pic",blank=True) 

    def __str__(self):
        return self.user.username

28fe716e58c57415bf77ed45be8a6e1415c2b36f
<mask token>


class UserProfile(models.Model):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class UserProfile(models.Model):
    <mask token>
    <mask token>

    def __str__(self):
        return self.user.username

<mask token>


class UserProfile(models.Model):
    user = models.OneToOneField(User, related_name='user_profile',
        on_delete=models.CASCADE)
    profile_pic = models.ImageField(upload_to='profile_pic', blank=True)

    def __str__(self):
        return self.user.username

from django.db import models
from django.contrib.auth.models import User


class UserProfile(models.Model):
    user = models.OneToOneField(User, related_name='user_profile',
        on_delete=models.CASCADE)
    profile_pic = models.ImageField(upload_to='profile_pic', blank=True)

    def __str__(self):
        return self.user.username

from django.db import models
from django.contrib.auth.models import User 


class UserProfile(models.Model):
    user        = models.OneToOneField(User,related_name="user_profile",on_delete=models.CASCADE)
    profile_pic = models.ImageField(upload_to="profile_pic",blank=True) 

    def __str__(self):
        return self.user.username
