mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Polished custom user model avatar photo
This commit is contained in:
parent
87d30a0ecc
commit
49a69c6737
7 changed files with 99 additions and 3 deletions
18
stude/accounts/migrations/0004_alter_customuser_avatar.py
Normal file
18
stude/accounts/migrations/0004_alter_customuser_avatar.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-26 12:41
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('accounts', '0003_customuser_avatar'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='customuser',
|
||||
name='avatar',
|
||||
field=models.ImageField(null=True, upload_to='media/avatars'),
|
||||
),
|
||||
]
|
|
@ -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='images', null=True)
|
||||
avatar = models.ImageField(upload_to='media/avatars', null=True)
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue