forked from CGM_Public/pretix_original
Moved property to the inside of items
This commit is contained in:
@@ -74,8 +74,7 @@ class ItemDisplayTest(EventTestMixin, BrowserTest):
|
||||
c = ItemCategory.objects.create(event=self.event, name="Entry tickets", position=0)
|
||||
q = Quota.objects.create(event=self.event, name='Quota', size=2)
|
||||
item = Item.objects.create(event=self.event, name='Early-bird ticket', category=c, default_price=0)
|
||||
prop1 = Property.objects.create(event=self.event, name="Color")
|
||||
item.properties.add(prop1)
|
||||
prop1 = Property.objects.create(event=self.event, name="Color", item=item)
|
||||
PropertyValue.objects.create(prop=prop1, value="Red")
|
||||
PropertyValue.objects.create(prop=prop1, value="Black")
|
||||
q.items.add(item)
|
||||
@@ -87,8 +86,7 @@ class ItemDisplayTest(EventTestMixin, BrowserTest):
|
||||
c = ItemCategory.objects.create(event=self.event, name="Entry tickets", position=0)
|
||||
q = Quota.objects.create(event=self.event, name='Quota', size=2)
|
||||
item = Item.objects.create(event=self.event, name='Early-bird ticket', category=c, default_price=0)
|
||||
prop1 = Property.objects.create(event=self.event, name="Color")
|
||||
item.properties.add(prop1)
|
||||
prop1 = Property.objects.create(event=self.event, name="Color", item=item)
|
||||
val1 = PropertyValue.objects.create(prop=prop1, value="Red")
|
||||
PropertyValue.objects.create(prop=prop1, value="Black")
|
||||
q.items.add(item)
|
||||
@@ -110,8 +108,7 @@ class ItemDisplayTest(EventTestMixin, BrowserTest):
|
||||
c = ItemCategory.objects.create(event=self.event, name="Entry tickets", position=0)
|
||||
q = Quota.objects.create(event=self.event, name='Quota', size=2)
|
||||
item = Item.objects.create(event=self.event, name='Early-bird ticket', category=c, default_price=12)
|
||||
prop1 = Property.objects.create(event=self.event, name="Color")
|
||||
item.properties.add(prop1)
|
||||
prop1 = Property.objects.create(event=self.event, name="Color", item=item)
|
||||
val1 = PropertyValue.objects.create(prop=prop1, value="Red", position=0)
|
||||
val2 = PropertyValue.objects.create(prop=prop1, value="Black", position=1)
|
||||
q.items.add(item)
|
||||
|
||||
Reference in New Issue
Block a user