Stronger bdd validation for studentcards

This commit is contained in:
Antoine Bartuccio 2018-10-19 01:21:40 +02:00 committed by Bartuccio Antoine
parent 577ad07a2b
commit 14d9fc04d1
Signed by: klmp200
GPG Key ID: E7245548C53F904B

View File

@ -1,7 +1,8 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-10-17 23:02 # Generated by Django 1.11.13 on 2018-10-18 23:15
from __future__ import unicode_literals from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
@ -25,7 +26,12 @@ class Migration(migrations.Migration):
), ),
( (
"uid", "uid",
models.CharField(max_length=14, unique=True, verbose_name="uid"), models.CharField(
max_length=14,
unique=True,
validators=[django.core.validators.MinLengthValidator(4)],
verbose_name="uid",
),
), ),
( (
"customer", "customer",