dashboard: allow negative tile order (#21005)

This commit is contained in:
Frédéric Péters 2018-01-05 09:49:36 +01:00
parent 31698ae4a9
commit 7e30175d7d
2 changed files with 20 additions and 1 deletions

View File

@ -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(),
),
]

View File

@ -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',)