Oh, right
[edumed.git] / publishers / models.py
diff --git a/publishers/models.py b/publishers/models.py
new file mode 100644 (file)
index 0000000..10d1947
--- /dev/null
@@ -0,0 +1,8 @@
+from django.db import models
+
+class Publisher(models.Model):
+    name = models.CharField(max_length=255)
+    logo = models.ImageField(upload_to='publishers/logo')
+
+    def __unicode__(self):
+        return self.name