# TODO:
# - Create sensible default options with translation;
# - Test the authentification framework;
-# - Ensure pertinence of the comics building way : block by block;
+# - Ensure relevance of the comics building way : block by block;
# - Test upload to images file outside the DB ...;
# - ...
class Style(models.Model):
TAG_NAME_CHOICES = (
(_('MG'), _('Manga')),
(_('HF'), _('Heroic Fantasy')),
- )
+ )
name = models.CharField(_('name'), max_length=30, choices=TAG_NAME_CHOICES)
def __unicode__(self):
return self.name
+
class Meta:
verbose_name = _('Style')
verbose_name_plural = _('Styles')
('AS', 'Advert Stream'),
('TJ', 'Traffic Junky'),
)
- ads_publisher = models.CharField(max_length=50, choices=ADS_PUBLISHER_CHOICES)
- ads_publisher_login = models.CharField(max_length=50)
+ ads_publisher = models.CharField(_('Ads publisher'), max_length=50, choices=ADS_PUBLISHER_CHOICES)
+ ads_publisher_login = models.CharField(_('Ads publisher login'), max_length=50)
class Meta:
verbose_name = _('User profile')
class Comic_block(models.Model):
"""
- Let's view a comics as an images serie
+ Let's view a comics as an images series
"""
name = models.CharField(_('name'), max_length=50) # probably not useful, it's just simplier to assemble afterwards for author
number = models.IntegerField(_('number'))
A comic is build from N blocks, whatever they are
The ManytoMany relationship is not really required but it much more reflect really : authors can share block between comic
"""
- title = models.CharField(max_length=50)
+ title = models.CharField(_('title'), max_length=50)
rating = models.FloatField()
is_online = models.BooleanField()
publication_date = models.DateField(auto_now=True)
return self.title
class Meta:
+ verbose_name = _('Comic')
+ verbose_name_plural = _('Comics')
ordering = ('title',)