Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
django-representatives
Commits
f5046c44
Commit
f5046c44
authored
Jun 24, 2016
by
Nicolas Joyard
Browse files
Enlarge group name field
parent
fe6bc4b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
representatives/migrations/0018_auto_20160624_0517.py
0 → 100644
View file @
f5046c44
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'representatives'
,
'0017_auto_20160623_2201'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'group'
,
name
=
'name'
,
field
=
models
.
CharField
(
max_length
=
511
,
db_index
=
True
),
),
]
representatives/models.py
View file @
f5046c44
...
...
@@ -174,7 +174,7 @@ class Group(HashableModel, TimeStampedModel):
"""
An entity represented by a representative through a mandate
"""
name
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
name
=
models
.
CharField
(
max_length
=
511
,
db_index
=
True
)
abbreviation
=
models
.
CharField
(
max_length
=
10
,
blank
=
True
,
default
=
''
,
db_index
=
True
)
kind
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment