Parcourir la source

fix duplicate definition of Meta class

Olivier Le Brouster il y a 7 ans
Parent
commit
bf558a4ccc
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      panorama/models.py

+ 2 - 4
panorama/models.py

@@ -315,6 +315,8 @@ class Reference(models.Model):
         # It makes no sense to have multiple references of the same
         # It makes no sense to have multiple references of the same
         # reference point on a given panorama.
         # reference point on a given panorama.
         unique_together = (("reference_point", "panorama"),)
         unique_together = (("reference_point", "panorama"),)
+        verbose_name = _("reference")
+        verbose_name_plural = _("references")
 
 
     def clean(self):
     def clean(self):
         # Check that the reference point and the panorama are different
         # Check that the reference point and the panorama are different
@@ -337,7 +339,3 @@ class Reference(models.Model):
                 xy=(self.x, self.y),
                 xy=(self.x, self.y),
                 refpoint=self.reference_point.name,
                 refpoint=self.reference_point.name,
                 )
                 )
-
-    class Meta:
-        verbose_name = _("reference")
-        verbose_name_plural = _("references")