mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
Polish custom user model and git ignore
This commit is contained in:
parent
81c02e7a6c
commit
5085f9929b
2 changed files with 2 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -62,7 +62,7 @@ db.sqlite3
|
|||
db.sqlite3-journal
|
||||
|
||||
# Static Media Stuff
|
||||
/media/
|
||||
stude/media/*
|
||||
|
||||
# Flask stuff:
|
||||
instance/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue