mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-17 19:53:21 +00:00
Stronger bdd validation for studentcards
This commit is contained in:
parent
577ad07a2b
commit
14d9fc04d1
@ -1,7 +1,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
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
@ -25,7 +26,12 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
(
|
||||
"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",
|
||||
|
Loading…
Reference in New Issue
Block a user