mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2025-05-16 11:28:24 +08:00
Remove avatar field in user and add section field
This commit is contained in:
parent
4a26f6ae3e
commit
85fb489352
8 changed files with 49 additions and 53 deletions
|
@ -1,10 +1,9 @@
|
|||
# Generated by Django 4.2.7 on 2024-01-05 10:26
|
||||
# Generated by Django 5.0.1 on 2024-01-14 12:55
|
||||
|
||||
import accounts.models
|
||||
import django.contrib.auth.models
|
||||
import django.contrib.auth.validators
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
@ -33,7 +32,7 @@ class Migration(migrations.Migration):
|
|||
('is_technician', models.BooleanField(default=False)),
|
||||
('is_teacher', models.BooleanField(default=False)),
|
||||
('course', models.CharField(choices=[('BS Chemistry', 'BS Chemistry'), ('BS Food Technology', 'BS Food Technology'), ('BS Applied Physics', 'BS Applied Physics'), ('BS Environmental Science', 'BS Environmental Science')], default=None, max_length=60, null=True)),
|
||||
('avatar', models.ImageField(null=True, upload_to=accounts.models.CustomUser._get_upload_to)),
|
||||
('section', models.CharField(default=None, max_length=60, null=True)),
|
||||
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')),
|
||||
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')),
|
||||
],
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue