fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
publishers/models.py
@@ -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