summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 35be3ffc0..d4d6d2c79 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3065,6 +3065,16 @@ class IshtarImage(ImageModel):
ordering = ('name',)
+class ThroughImage(models.Model):
+ image = models.ForeignKey(
+ IshtarImage, on_delete=models.CASCADE)
+ is_main = models.BooleanField(_(u"Main image"), default=False)
+
+ class Meta:
+ ordering = ('-is_main', 'image__name')
+ abstract = True
+
+
if settings.COUNTRY == 'fr':
class Arrondissement(models.Model):
name = models.CharField(u"Nom", max_length=30)