Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
f4b6f10d
Commit
f4b6f10d
authored
Jan 21, 2019
by
Hugo LEVY-FALK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attribut name unique
parent
ddc2c6e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
cotisations/migrations/0040_auto_20190120_1708.py
cotisations/migrations/0040_auto_20190120_1708.py
+20
-0
cotisations/models.py
cotisations/models.py
+3
-2
No files found.
cotisations/migrations/0040_auto_20190120_1708.py
0 → 100644
View file @
f4b6f10d
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2019-01-20 23:08
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'cotisations'
,
'0039_documenttemplate'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'documenttemplate'
,
name
=
'name'
,
field
=
models
.
CharField
(
max_length
=
125
,
unique
=
True
,
verbose_name
=
'name'
),
),
]
cotisations/models.py
View file @
f4b6f10d
...
...
@@ -967,8 +967,9 @@ class DocumentTemplate(RevMixin, AclMixin, models.Model):
verbose_name
=
_
(
'template'
)
)
name
=
models
.
CharField
(
max_length
=
255
,
verbose_name
=
_
(
'name'
)
max_length
=
125
,
verbose_name
=
_
(
'name'
),
unique
=
True
)
class
Meta
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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