1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-30 01:51:09 +02:00

Gestion des clefs

This commit is contained in:
Med
2017-07-03 20:06:21 +02:00
parent b2a653dd97
commit 0738b143b7
11 changed files with 275 additions and 3 deletions

View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-03 16:44
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20170629_2156'),
]
operations = [
migrations.CreateModel(
name='Clef',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('nom', models.CharField(max_length=255, unique=True)),
('proprio', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
],
),
]

View File

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-03 17:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0004_clef'),
]
operations = [
migrations.AlterField(
model_name='clef',
name='proprio',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
),
]

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-03 17:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20170703_1940'),
]
operations = [
migrations.AddField(
model_name='clef',
name='commentaire',
field=models.CharField(blank=True, max_length=255, null=True),
),
]