Commits

Patrick Guido Arminio committed 66a34b8

Aggiungo i dispositivi all'admin

Comments (0)

Files changed (2)

projectmensa/menu/admin.py

 admin.site.register(Course, CourseAdmin)
 admin.site.register(TypeToken)
 admin.site.register(MenuOfTheDay, MenuAdmin)
+admin.site.register(Device)

projectmensa/menu/models.py

     class Meta(object):
         verbose_name = _('Dispositivo')
         verbose_name_plural = _('Dispositivi')
+
+    def __unicode__(self):
+        return self.key