mirror of
https://github.com/Rushilwiz/chirper.git
synced 2025-04-09 15:00:20 -04:00
Added more args to Profile model
This commit is contained in:
parent
37d46902ee
commit
42fadf30a4
|
@ -11,8 +11,8 @@ class Profile(models.Model):
|
||||||
def __str__ (self):
|
def __str__ (self):
|
||||||
return f"{self.user.username}'s Profile"
|
return f"{self.user.username}'s Profile"
|
||||||
|
|
||||||
def save(self):
|
def save(self, *args, **kwargs):
|
||||||
super().save()
|
super().save(*args, **kwargs)
|
||||||
|
|
||||||
img = Image.open(self.profile_pic.path)
|
img = Image.open(self.profile_pic.path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user