Moved property to the inside of items

This commit is contained in:
Raphael Michel
2015-10-08 12:45:19 +02:00
parent b99f541adf
commit 974c5cee79
25 changed files with 649 additions and 603 deletions

View File

@@ -217,7 +217,8 @@ class TimeRestrictionTest(TestCase):
self.assertFalse(result[0]['available'])
def test_variation_specific(self):
self.item.properties.add(self.property)
self.property.item = self.item
self.property.save()
r1 = TimeRestriction.objects.create(
timeframe_from=now() - timedelta(days=5),
@@ -242,7 +243,8 @@ class TimeRestrictionTest(TestCase):
self.assertTrue(v['available'])
def test_variation_specifics(self):
self.item.properties.add(self.property)
self.property.item = self.item
self.property.save()
r1 = TimeRestriction.objects.create(
timeframe_from=now() - timedelta(days=5),