Skip to content

Commit

Permalink
about field to profile added
Browse files Browse the repository at this point in the history
  • Loading branch information
oktayozel committed Nov 23, 2024
1 parent 0b7da0d commit 899f2a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def __str__(self):
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="profile")
name = models.CharField(max_length=100,null=True, blank=True)
about = models.CharField(max_length=500,null=True, blank=True)

following = models.ManyToManyField("self", symmetrical=False, related_name="followers", blank=True)
level = models.CharField(max_length=2, choices=LEVEL_CHOICES, default='A1')

Expand Down

0 comments on commit 899f2a0

Please sign in to comment.