Add category to equipment model and improve serializers for equipments app

This commit is contained in:
Keannu Christian Bernasol 2023-12-02 20:58:55 +08:00
parent 0529152375
commit 4a6bd1ef35
8 changed files with 78 additions and 119 deletions

View file

@ -1,4 +1,4 @@
# Generated by Django 4.2.7 on 2023-11-09 11:42
# Generated by Django 4.2.7 on 2023-12-02 12:25
import accounts.models
import django.contrib.auth.models
@ -30,6 +30,7 @@ class Migration(migrations.Migration):
('first_name', models.CharField(max_length=100)),
('last_name', models.CharField(max_length=100)),
('is_active', models.BooleanField(default=False)),
('is_technician', models.BooleanField(default=False)),
('avatar', models.ImageField(null=True, upload_to=accounts.models.CustomUser._get_upload_to)),
('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')),

View file

@ -1,18 +0,0 @@
# Generated by Django 4.2.7 on 2023-11-13 10:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='customuser',
name='is_technician',
field=models.BooleanField(default=False),
),
]