-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SMP-220] Trier areas et polygones par ordre alphabétique (#52)
* added alphabetical order for Polygon and Areas ViewSet * added indexes to the 'label' field of Area and Polygons Models
- Loading branch information
1 parent
29b4ea2
commit 402dd98
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
mds/migrations/0011_added_index_to_polygon_and_area_models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 2.1.7 on 2019-03-01 11:13 | ||
|
||
from django.db import migrations | ||
import mds.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mds', '0010_device_dn_battery_pct'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='area', | ||
name='label', | ||
field=mds.models.UnboundedCharField(blank=True, db_index=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='polygon', | ||
name='label', | ||
field=mds.models.UnboundedCharField(blank=True, db_index=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters