Commit f4b6f10d authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK

attribut name unique

parent ddc2c6e3
# -*- 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): ...@@ -967,8 +967,9 @@ class DocumentTemplate(RevMixin, AclMixin, models.Model):
verbose_name=_('template') verbose_name=_('template')
) )
name = models.CharField( name = models.CharField(
max_length=255, max_length=125,
verbose_name=_('name') verbose_name=_('name'),
unique=True
) )
class Meta: class Meta:
......
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