8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-06-13 22:28:11 +00:00

attribut name unique

This commit is contained in:
Hugo LEVY-FALK 2019-01-21 00:08:53 +01:00
parent ddc2c6e380
commit f4b6f10d1e
2 changed files with 23 additions and 2 deletions

View 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'),
),
]

View file

@ -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: