diff --git a/osinaweb/billing/__pycache__/models.cpython-310.pyc b/osinaweb/billing/__pycache__/models.cpython-310.pyc index 53ba5160..9be8db96 100644 Binary files a/osinaweb/billing/__pycache__/models.cpython-310.pyc and b/osinaweb/billing/__pycache__/models.cpython-310.pyc differ diff --git a/osinaweb/billing/migrations/0053_item_photo.py b/osinaweb/billing/migrations/0053_item_photo.py new file mode 100644 index 00000000..0b67d45b --- /dev/null +++ b/osinaweb/billing/migrations/0053_item_photo.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.5 on 2024-07-18 07:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('billing', '0052_alter_orderstatus_status'), + ] + + operations = [ + migrations.AddField( + model_name='item', + name='photo', + field=models.ImageField(blank=True, null=True, upload_to=''), + ), + ] diff --git a/osinaweb/billing/migrations/__pycache__/0053_item_photo.cpython-310.pyc b/osinaweb/billing/migrations/__pycache__/0053_item_photo.cpython-310.pyc new file mode 100644 index 00000000..ed9f24ac Binary files /dev/null and b/osinaweb/billing/migrations/__pycache__/0053_item_photo.cpython-310.pyc differ diff --git a/osinaweb/billing/models.py b/osinaweb/billing/models.py index 47b2c202..ba6733f2 100644 --- a/osinaweb/billing/models.py +++ b/osinaweb/billing/models.py @@ -16,6 +16,7 @@ class Item(models.Model): item_type = models.ForeignKey(ProjectType, on_delete=models.CASCADE, null=True, blank=True) amount = models.FloatField(null=True) recurring = models.BooleanField(default=False) + photo = models.ImageField(null=True, blank=True) def __str__(self): return self.title diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 56bab1e8..3d9790ec 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc index e73bf97e..819703dd 100644 Binary files a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/osinacore/templates/details_templates/customer-details.html b/osinaweb/osinacore/templates/details_templates/customer-details.html index 20d3b6fd..34408c89 100644 --- a/osinaweb/osinacore/templates/details_templates/customer-details.html +++ b/osinaweb/osinacore/templates/details_templates/customer-details.html @@ -302,20 +302,26 @@
Expires:{% if subscription.end_at %} {{subscription.end_at}} {% else %} No + Expiry {% endif %} +
+Expires:{% if subscription.end_at %} {{subscription.end_at}} {% else %} No - Expiry {% endif %} -
-