From 87229152be648a480b9e4f4896a38ea8484739f1 Mon Sep 17 00:00:00 2001 From: Chris Li <c58li@uwaterloo.ca> Date: Fri, 24 Mar 2023 13:29:04 -0400 Subject: [PATCH] Change Profile image field to int. --- core/models/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models/profile.py b/core/models/profile.py index b20f6d7..f58d82f 100644 --- a/core/models/profile.py +++ b/core/models/profile.py @@ -16,7 +16,7 @@ class Profile(TimeStampedModel): affiliation = models.CharField( max_length=100, verbose_name="Name of your organization in English", ) - photo = models.ImageField(upload_to='media/', max_length=100000, null=True, blank=True, default="https://static.productionready.io/images/smiley-cyrus.jpg") + photo = models.IntegerField(default=1) def __str__(self): return self.user.username -- GitLab