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

class UserProfile(models.Model):
  user = models.OneToOneField(User)
  description = models.TextField(max_length=3000)
  picture = models.ImageField(upload_to='media/profiles/')
from django.db import models
from django.contrib.auth.models import User

class UserProfile(models.Model):
  user = models.OneToOneField(User)
  description = models.TextField(max_length=3000)
  picture = models.ImageField(upload_to='media/profiles/')
  follows = models.ManyToManyField("self", blank=True, null=True)
Add following into user profile
Add following into user profile

  from django.db import models
  from django.contrib.auth.models import User
  
  class UserProfile(models.Model):
    user = models.OneToOneField(User)
    description = models.TextField(max_length=3000)
    picture = models.ImageField(upload_to='media/profiles/')
+   follows = models.ManyToManyField("self", blank=True, null=True)
Add following into user profile
## Code Before:
from django.db import models
from django.contrib.auth.models import User

class UserProfile(models.Model):
  user = models.OneToOneField(User)
  description = models.TextField(max_length=3000)
  picture = models.ImageField(upload_to='media/profiles/')
## Instruction:
Add following into user profile
## Code After:
from django.db import models
from django.contrib.auth.models import User

class UserProfile(models.Model):
  user = models.OneToOneField(User)
  description = models.TextField(max_length=3000)
  picture = models.ImageField(upload_to='media/profiles/')
  follows = models.ManyToManyField("self", blank=True, null=True)