group: add __unicode__.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 2 Feb 2013 12:17:21 +0000 (13:17 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 2 Feb 2013 12:17:23 +0000 (13:17 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
xnet/group/models.py

index f8e5cb4..b544387 100644 (file)
@@ -43,3 +43,6 @@ class Group(models.Model):
     class Meta:
         verbose_name = _(u"group")
         verbose_name_plural = _(u"groups")
+
+    def __unicode__(self):
+        return self.name