forked from 0x2620/pandora
fix list defaults
This commit is contained in:
parent
ecf02a143a
commit
51f2e2a14c
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ class List(models.Model):
|
||||||
icon = models.ImageField(default=None, blank=True,
|
icon = models.ImageField(default=None, blank=True,
|
||||||
upload_to=lambda i, x: i.path("icon.jpg"))
|
upload_to=lambda i, x: i.path("icon.jpg"))
|
||||||
|
|
||||||
view = models.TextField(default=lambda: settings.CONFIG['user']['ui']['listView'])
|
view = models.TextField(default=lambda: tuple(settings.CONFIG['user']['ui']['listView']))
|
||||||
sort = TupleField(default=lambda: settings.CONFIG['user']['ui']['listSort'], editable=False)
|
sort = TupleField(default=lambda: tuple(settings.CONFIG['user']['ui']['listSort']), editable=False)
|
||||||
|
|
||||||
poster_frames = TupleField(default=[], editable=False)
|
poster_frames = TupleField(default=[], editable=False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue