X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d0f0e1412cc42d366b234e798dfb68feed05d751..d555d988764995ea1f9f5ece46f453a66f09b334:/src/publishers/models.py diff --git a/src/publishers/models.py b/src/publishers/models.py new file mode 100644 index 0000000..14ed63a --- /dev/null +++ b/src/publishers/models.py @@ -0,0 +1,10 @@ +# -*- coding: utf-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