diff --git a/alkatorapi/migrations/0015_user_price.py b/alkatorapi/migrations/0015_user_price.py new file mode 100644 index 0000000..3e4a3e7 --- /dev/null +++ b/alkatorapi/migrations/0015_user_price.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.12 on 2024-08-22 13:29 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('alkatorapi', '0014_user_invoice_id'), + ] + + operations = [ + migrations.AddField( + model_name='user', + name='price', + field=models.IntegerField(default=690), + ), + ] diff --git a/alkatorapi/models.py b/alkatorapi/models.py index ad27b25..e1289c2 100644 --- a/alkatorapi/models.py +++ b/alkatorapi/models.py @@ -35,6 +35,7 @@ class User(models.Model): alkator_category = models.IntegerField(choices=ALKATOR_CHOICES, default=1) alkator_class = models.IntegerField(choices=ALKATOR_CLASSES) trans_id = models.CharField(null=True, blank=True, max_length=120) + price = models.IntegerField(default=690) paid = models.BooleanField(default=False) invoice_id = models.IntegerField(null=True, blank=True, unique=True) diff --git a/alkatorapi/templates/invoice.html b/alkatorapi/templates/invoice.html index 519a256..d081e8b 100644 --- a/alkatorapi/templates/invoice.html +++ b/alkatorapi/templates/invoice.html @@ -217,9 +217,9 @@