work on comments, clean up a bit

This commit is contained in:
bkfox
2016-05-26 00:51:23 +02:00
parent f8f3beb124
commit a989e53da4
9 changed files with 249 additions and 86 deletions

View File

@ -103,7 +103,7 @@ class Sound(Nameable):
type = models.SmallIntegerField(
verbose_name = _('type'),
choices = [ (y, _(x)) for x,y in Type.__members__.items() ],
choices = [ (int(y), _(x)) for x,y in Type.__members__.items() ],
blank = True, null = True
)
path = models.FilePathField(
@ -571,7 +571,7 @@ class Diffusion(models.Model):
# specific
type = models.SmallIntegerField(
verbose_name = _('type'),
choices = [ (y, _(x)) for x,y in Type.__members__.items() ],
choices = [ (int(y), _(x)) for x,y in Type.__members__.items() ],
)
initial = models.ForeignKey (
'self',