Commit f9ccd6e5 authored by Valentin Samir's avatar Valentin Samir

CHange unique constrain

parent f4935711
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cas_server', '0010_auto_20150518_2139'),
operations = [
unique_together=set([('name', 'replace', 'service_pattern')]),
......@@ -132,7 +132,7 @@ class Usernames(models.Model):
class ReplaceAttributName(models.Model):
class Meta:
unique_together = ('name', 'service_pattern')
unique_together = ('name', 'replace', 'service_pattern')
name = models.CharField(max_length=255, help_text=u"nom d'un attributs à transmettre au service")
replace = models.CharField(max_length=255, blank=True, help_text=u"nom sous lequel l'attribut sera présenté au service. vide = inchangé")
service_pattern = models.ForeignKey(ServicePattern, related_name="attributs")
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