+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
+ number = models.IntegerField(_('number'))
+ content = models.ImageField(upload_to='block_contents')
+ # TODO: probably not useful
+ is_complete = models.BooleanField()
+ upload_datetime = models.DateTimeField(_('upload_datetime'), auto_now=True)
+ authors = models.ManyToManyField(UserProfile, verbose_name=_('authors'))
+ def __unicode__(self):
+ """
+ This idea is to return a visual identifier to the author, self.content is surely bogus to get the image path
+ """
+ return self.name + ' ' + self.content