Skip to content

Commit

Permalink
Make personal documents info not nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
ShishckovA committed Feb 20, 2024
1 parent cb822e7 commit 011a734
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.20 on 2024-01-17 10:02
# Generated by Django 3.2.20 on 2024-02-14 21:35

from django.db import migrations, models
import django.db.models.deletion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.20 on 2024-01-17 10:02
# Generated by Django 3.2.20 on 2024-02-14 21:35

from django.db import migrations, models

Expand All @@ -14,8 +14,8 @@ class Migration(migrations.Migration):
name='PersonalDocumentsInfo',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('tax_id', models.CharField(default='', max_length=13)),
('insurance_number', models.CharField(default='', max_length=14)),
('tax_id', models.CharField(max_length=13)),
('insurance_number', models.CharField(max_length=14)),
],
options={
'verbose_name': 'Personal Documents Info',
Expand Down
4 changes: 2 additions & 2 deletions back-end/src/common/models/personal.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ class Meta:


class PersonalDocumentsInfo(models.Model):
tax_id = models.CharField(max_length=13, default="")
insurance_number = models.CharField(max_length=14, default="")
tax_id = models.CharField(max_length=13, null=False)
insurance_number = models.CharField(max_length=14, null=False)

class Meta:
verbose_name = "Personal Documents Info"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.20 on 2024-01-17 10:02
# Generated by Django 3.2.20 on 2024-02-14 21:35

from django.db import migrations, models
import django.db.models.deletion
Expand Down

0 comments on commit 011a734

Please sign in to comment.