mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
attribut name unique
This commit is contained in:
parent
ddc2c6e380
commit
f4b6f10d1e
2 changed files with 23 additions and 2 deletions
20
cotisations/migrations/0040_auto_20190120_1708.py
Normal file
20
cotisations/migrations/0040_auto_20190120_1708.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- 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'),
|
||||
),
|
||||
]
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue