Browse Source

When converting objects to string, don't include the type

Baptiste Jonglez 9 years ago
parent
commit
6ea3dbea7f
1 changed files with 1 additions and 4 deletions
  1. 1 4
      panorama/models.py

+ 1 - 4
panorama/models.py

@@ -107,7 +107,7 @@ class ReferencePoint(Point):
                             help_text="Name of the point")
 
     def __str__(self):
-        return "Reference point : " + self.name
+        return self.name
 
 
 @python_2_unicode_compatible
@@ -267,9 +267,6 @@ class Panorama(ReferencePoint):
                 (ref2.x - ref1.x)
         return target_cap % 360
 
-    def __str__(self):
-        return "Panorama : " + self.name
-
 
 @python_2_unicode_compatible
 class Reference(models.Model):