X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=comicsporn%2Fmodels.py;h=938c9e7036e6c9a0792ff95297b525d0938b858d;hb=9481a8d3547d4fb0acbc6917e4ae158e5f751413;hp=e0ed5dbd84d7d7561a0ac35a2f9fac44d1f4e871;hpb=654133ef875bc5e3ac853050459509da240e7f14;p=webcomics.git diff --git a/comicsporn/models.py b/comicsporn/models.py index e0ed5db..938c9e7 100644 --- a/comicsporn/models.py +++ b/comicsporn/models.py @@ -1,7 +1,8 @@ -from django.db import models from django.contrib.auth.models import User +from django.db import models from django.utils.translation import ugettext_lazy as _ + # A very basic data model to begin with # TODO: # - Create sensible default options with translation; @@ -9,7 +10,6 @@ from django.utils.translation import ugettext_lazy as _ # - Ensure pertinence of the comics building way : block by block; # - Test upload to images file outside the DB ...; # - ... - class Style(models.Model): """ TODO: The choice list should be in DB @@ -52,7 +52,7 @@ class Comic_block(models.Model): """ Let's view a comics as an images serie """ - name = models.CharField(_('name'), max_length=50) # probably not useful, it's just simplier to assemble afterwards for author + name = models.CharField(_('name'), max_length=50) # probably not useful, it's just simplier to assemble afterwards for author number = models.IntegerField(_('number')) content = models.ImageField(upload_to='block_contents') # TODO: probably not useful