Polish custom user model and git ignore

This commit is contained in:
Keannu Bernasol 2023-06-26 20:56:02 +08:00
parent 81c02e7a6c
commit 5085f9929b
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View file

@ -62,7 +62,7 @@ db.sqlite3
db.sqlite3-journal
# Static Media Stuff
/media/
stude/media/*
# Flask stuff:
instance/

View file

@ -28,5 +28,5 @@ class CustomUser(AbstractUser):
max_length=50, choices=YEAR_LEVELS)
semester = models.CharField(
max_length=50, choices=SEMESTERS)
avatar = models.ImageField(upload_to='media/avatars', null=True)
avatar = models.ImageField(upload_to='avatars', null=True)
pass