mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Improve deletion and add ordering on roles
This commit is contained in:
24
election/migrations/0003_auto_20171202_1819.py
Normal file
24
election/migrations/0003_auto_20171202_1819.py
Normal file
@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('election', '0002_election_archived'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='role',
|
||||
options={'ordering': ('order',)},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='role',
|
||||
name='order',
|
||||
field=models.PositiveIntegerField(editable=False, default=0, db_index=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user