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

Ajoute la gestion des adhesions dans la bdd

This commit is contained in:
Med
2017-07-05 00:47:05 +02:00
parent 9889e9ee50
commit 5c51a56881
11 changed files with 279 additions and 4 deletions

View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-04 22:00
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0006_clef_commentaire'),
]
operations = [
migrations.CreateModel(
name='Adhesion',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('annee_debut', models.IntegerField(unique=True)),
('annee_fin', models.IntegerField(unique=True)),
('adherent', models.ManyToManyField(blank=True, null=True, to=settings.AUTH_USER_MODEL)),
],
),
]

View File

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-04 22:01
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0007_adhesion'),
]
operations = [
migrations.AlterField(
model_name='adhesion',
name='adherent',
field=models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL),
),
]