diff --git a/apps/anons/migrations/0003_alter_anons_read_by.py b/apps/anons/migrations/0003_alter_anons_read_by.py new file mode 100644 index 0000000..1679292 --- /dev/null +++ b/apps/anons/migrations/0003_alter_anons_read_by.py @@ -0,0 +1,20 @@ +# Generated by Django 5.0.7 on 2024-09-11 10:32 + +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('anons', '0002_anons_read_by_delete_anonsreader'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.AlterField( + model_name='anons', + name='read_by', + field=models.ManyToManyField(related_name='read_anons', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/apps/anons/models.py b/apps/anons/models.py index ad52e0b..2e7dcd7 100644 --- a/apps/anons/models.py +++ b/apps/anons/models.py @@ -7,9 +7,7 @@ class Anons(BaseModel): title = models.CharField(max_length=256) description = models.TextField() - read_by = models.ManyToManyField( - User, related_name="read_anons", null=True, blank=True - ) + read_by = models.ManyToManyField(User, related_name="read_anons") class Meta: verbose_name = "Anons" diff --git a/apps/clients/models.py b/apps/clients/models.py index 7d069e6..2e7ac81 100644 --- a/apps/clients/models.py +++ b/apps/clients/models.py @@ -26,9 +26,9 @@ class Client(BaseModel): address = models.TextField() identification_number = models.CharField(max_length=64, unique=True) - credit_score = models.IntegerField(blank=True, null=True) + credit_score = models.IntegerField(null=True, blank=True) - image = models.ImageField(upload_to="clients", blank=True, null=True) + image = models.ImageField(upload_to="clients", null=True, blank=True) is_active = models.BooleanField(default=True)