Commit b2762ca5 authored by Jamesie Pic's avatar Jamesie Pic

Index Group.name

parent 40529c54
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('representatives', '0011_auto_20151226_1938'),
]
operations = [
migrations.AlterField(
model_name='group',
name='name',
field=models.CharField(max_length=255, db_index=True),
),
]
......@@ -162,7 +162,7 @@ class Group(HashableModel, TimeStampedModel):
"""
An entity represented by a representative through a mandate
"""
name = models.CharField(max_length=255)
name = models.CharField(max_length=255, db_index=True)
abbreviation = models.CharField(max_length=10, blank=True, default='',
db_index=True)
kind = models.CharField(max_length=255, db_index=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment