Skip to content

Commit

Permalink
fix(tickets): make max_count_per_product blank=True
Browse files Browse the repository at this point in the history
  • Loading branch information
japsu committed Apr 21, 2023
1 parent 5621287 commit c8fe64c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2 on 2023-04-21 11:47

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("tickets", "0035_ticketseventmeta_max_count_per_product"),
]

operations = [
migrations.AlterField(
model_name="ticketseventmeta",
name="max_count_per_product",
field=models.SmallIntegerField(blank=True, default=99),
),
]
2 changes: 1 addition & 1 deletion tickets/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class TicketsEventMeta(ContactEmailMixin, EventMetaBase, LocalizedModel):
help_text=_("If set, customers will be required to indicate acceptance to finish order."),
)

max_count_per_product = models.SmallIntegerField(default=99)
max_count_per_product = models.SmallIntegerField(blank=True, default=99)

def __str__(self):
return self.event.name
Expand Down

0 comments on commit c8fe64c

Please sign in to comment.