mirror of https://gitlab.federez.net/re2o/re2o
committed by
chirac
19 changed files with 377 additions and 54 deletions
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2017-08-18 23:04 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('cotisations', '0020_auto_20170819_0057'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='paiement', |
|||
name='type_paiement', |
|||
field=models.IntegerField(choices=[(0, 'Autre'), (1, 'Chèque')], default=0), |
|||
), |
|||
] |
|||
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2017-08-23 23:28 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('cotisations', '0021_auto_20170819_0104'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='paiement', |
|||
name='type_paiement', |
|||
field=models.IntegerField(choices=[(0, 'Autre'), (1, 'Chèque')], default=0, max_length=255), |
|||
), |
|||
] |
|||
@ -1,3 +1,47 @@ |
|||
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il |
|||
# se veut agnostique au réseau considéré, de manière à être installable en |
|||
# quelques clics. |
|||
# |
|||
# Copyright © 2017 Gabriel Détraz |
|||
# Copyright © 2017 Goulven Kermarec |
|||
# Copyright © 2017 Augustin Lemesle |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License along |
|||
# with this program; if not, write to the Free Software Foundation, Inc., |
|||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
|
|||
from django.contrib import admin |
|||
from reversion.admin import VersionAdmin |
|||
|
|||
from .models import OptionalUser, OptionalMachine, GeneralOption, Service, AssoOption |
|||
|
|||
class OptionalUserAdmin(VersionAdmin): |
|||
pass |
|||
|
|||
class OptionalMachineAdmin(VersionAdmin): |
|||
pass |
|||
|
|||
class GeneralOptionAdmin(VersionAdmin): |
|||
pass |
|||
|
|||
class ServiceAdmin(VersionAdmin): |
|||
pass |
|||
|
|||
class AssoOptionAdmin(VersionAdmin): |
|||
pass |
|||
|
|||
# Register your models here. |
|||
admin.site.register(OptionalUser, OptionalUserAdmin) |
|||
admin.site.register(OptionalMachine, OptionalMachineAdmin) |
|||
admin.site.register(GeneralOption, GeneralOptionAdmin) |
|||
admin.site.register(Service, ServiceAdmin) |
|||
admin.site.register(AssoOption, AssoOptionAdmin) |
|||
|
|||
@ -0,0 +1,37 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2017-08-23 23:28 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0003_optionaluser_solde_negatif'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='AssoOption', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('name', models.CharField(default="Association réseau de l'école machin", max_length=32)), |
|||
('siret', models.CharField(default='00000000000000', max_length=32)), |
|||
('adresse', models.CharField(default="1 Rue de l'exemple, 94230 Cachan", max_length=128)), |
|||
('contact', models.EmailField(default='contact@example.org', max_length=254)), |
|||
('telephone', models.CharField(default='0000000000', max_length=15)), |
|||
('pseudo', models.CharField(default='Asso', max_length=32)), |
|||
], |
|||
), |
|||
migrations.CreateModel( |
|||
name='Services', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('name', models.CharField(max_length=32)), |
|||
('url', models.URLField()), |
|||
('description', models.TextField()), |
|||
('image', models.ImageField(upload_to='logo')), |
|||
], |
|||
), |
|||
] |
|||
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2017-08-23 23:39 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0004_assooption_services'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RenameModel( |
|||
old_name='Services', |
|||
new_name='Service', |
|||
), |
|||
] |
|||
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2017-08-23 23:43 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0005_auto_20170824_0139'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='service', |
|||
name='image', |
|||
field=models.ImageField(blank=True, upload_to='logo'), |
|||
), |
|||
] |
|||
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2017-08-24 18:56 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0006_auto_20170824_0143'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='assooption', |
|||
name='name', |
|||
field=models.CharField(default="Association réseau de l'école machin", max_length=256), |
|||
), |
|||
] |
|||
@ -0,0 +1,34 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2017-08-24 19:22 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0007_auto_20170824_2056'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RemoveField( |
|||
model_name='assooption', |
|||
name='adresse', |
|||
), |
|||
migrations.AddField( |
|||
model_name='assooption', |
|||
name='adresse1', |
|||
field=models.CharField(default='1 Rue de exemple', max_length=128), |
|||
), |
|||
migrations.AddField( |
|||
model_name='assooption', |
|||
name='adresse2', |
|||
field=models.CharField(default='94230 Cachan', max_length=128), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='assooption', |
|||
name='name', |
|||
field=models.CharField(default='Association réseau école machin', max_length=256), |
|||
), |
|||
] |
|||
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2017-08-24 19:35 |
|||
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 = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('preferences', '0008_auto_20170824_2122'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='assooption', |
|||
name='utilisateur_asso', |
|||
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL), |
|||
), |
|||
] |
|||
Loading…
Reference in new issue