dashboard: allow negative tile order (#21005)
This commit is contained in:
parent
31698ae4a9
commit
7e30175d7d
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dashboard', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='tile',
|
||||
name='order',
|
||||
field=models.IntegerField(),
|
||||
),
|
||||
]
|
|
@ -55,7 +55,7 @@ class Tile(models.Model):
|
|||
cell_pk = models.PositiveIntegerField()
|
||||
cell = fields.GenericForeignKey('cell_type', 'cell_pk')
|
||||
user = models.ForeignKey(settings.AUTH_USER_MODEL)
|
||||
order = models.PositiveIntegerField()
|
||||
order = models.IntegerField()
|
||||
|
||||
class Meta:
|
||||
ordering = ('order',)
|
||||
|
|
Loading…
Reference in New Issue