Пример #1
0
 def setUp(self):
     self.pics = create_picture_1(), create_picture_2(), create_picture_3()
     self.picset = PictureSet.objects.create(
         title="example set", slug="example-set", order="3,1,2")
     self.picset.pictures.add(self.pics[0])
     self.picset.pictures.add(self.pics[1])
     self.picset.pictures.add(self.pics[2])
     self.tag = ('<inline type="inline_media.pictureset" '
                 'id="%d"' % self.picset.id + ' class="%s"/>')
Пример #2
0
 def setUp(self):
     self.picture = create_picture_1()
     self.tag = ('<inline type="inline_media.picture" '
                 'id="%d"' % self.picture.id + ' class="%s"/>')