mirror of https://gitlab.federez.net/re2o/re2o
Browse Source
Fix #329. BREAKING CHANGE: you need to define the proper router in re2o/settings_locals.py for LDAP to continue working properly. See re2o/settings_locals.example.py.fix_316
committed by
klafyvel
427 changed files with 7 additions and 22508 deletions
@ -1,128 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("users", "0005_auto_20160702_0006")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Article", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
verbose_name="ID", |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
), |
|
||||
), |
|
||||
("name", models.CharField(max_length=255)), |
|
||||
("prix", models.DecimalField(decimal_places=2, max_digits=5)), |
|
||||
], |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="Banque", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
verbose_name="ID", |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
), |
|
||||
), |
|
||||
("name", models.CharField(max_length=255)), |
|
||||
], |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="Facture", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
verbose_name="ID", |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
), |
|
||||
), |
|
||||
("cheque", models.CharField(max_length=255)), |
|
||||
("number", models.IntegerField()), |
|
||||
("date", models.DateTimeField(auto_now_add=True)), |
|
||||
("name", models.CharField(max_length=255)), |
|
||||
("prix", models.DecimalField(decimal_places=2, max_digits=5)), |
|
||||
( |
|
||||
"article", |
|
||||
models.ForeignKey( |
|
||||
to="cotisations.Article", |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"banque", |
|
||||
models.ForeignKey( |
|
||||
to="cotisations.Banque", |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="Paiement", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
verbose_name="ID", |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
), |
|
||||
), |
|
||||
("moyen", models.CharField(max_length=255)), |
|
||||
], |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="facture", |
|
||||
name="paiement", |
|
||||
field=models.ForeignKey( |
|
||||
to="cotisations.Paiement", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="facture", |
|
||||
name="user", |
|
||||
field=models.ForeignKey( |
|
||||
to="users.User", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,33 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0001_initial")] |
|
||||
|
|
||||
operations = [migrations.RemoveField(model_name="facture", name="article")] |
|
||||
@ -1,45 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0002_remove_facture_article")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="banque", |
|
||||
field=models.ForeignKey( |
|
||||
blank=True, |
|
||||
to="cotisations.Banque", |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
null=True, |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,44 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0003_auto_20160702_1448")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="name", |
|
||||
field=models.CharField(null=True, max_length=255), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="prix", |
|
||||
field=models.DecimalField(max_digits=5, null=True, decimal_places=2), |
|
||||
), |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0004_auto_20160702_1528")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="cheque", |
|
||||
field=models.CharField(max_length=255, blank=True), |
|
||||
) |
|
||||
] |
|
||||
@ -1,46 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0005_auto_20160702_1532")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="name", |
|
||||
field=models.CharField(null=True, default="plop", max_length=255), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="prix", |
|
||||
field=models.DecimalField( |
|
||||
null=True, decimal_places=2, default=1, max_digits=5 |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,46 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0006_auto_20160702_1534")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="name", |
|
||||
field=models.CharField(default="plop", max_length=255), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="prix", |
|
||||
field=models.DecimalField(default=1, max_digits=5, decimal_places=2), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
] |
|
||||
@ -1,82 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
("users", "0005_auto_20160702_0006"), |
|
||||
("cotisations", "0007_auto_20160702_1543"), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Cotisation", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
verbose_name="ID", |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
auto_created=True, |
|
||||
), |
|
||||
), |
|
||||
("date_start", models.DateTimeField(auto_now_add=True)), |
|
||||
("date_end", models.DateTimeField()), |
|
||||
], |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="article", |
|
||||
name="cotisation", |
|
||||
field=models.BooleanField(default=True), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="article", |
|
||||
name="duration", |
|
||||
field=models.DurationField(blank=True, null=True), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="facture", name="valid", field=models.BooleanField(default=True) |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="cotisation", |
|
||||
name="facture", |
|
||||
field=models.ForeignKey( |
|
||||
to="cotisations.Facture", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="cotisation", |
|
||||
name="user", |
|
||||
field=models.ForeignKey( |
|
||||
to="users.User", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,33 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0008_auto_20160702_1614")] |
|
||||
|
|
||||
operations = [migrations.RemoveField(model_name="cotisation", name="user")] |
|
||||
@ -1,42 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0009_remove_cotisation_user")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RemoveField(model_name="article", name="duration"), |
|
||||
migrations.AddField( |
|
||||
model_name="article", |
|
||||
name="duration", |
|
||||
field=models.IntegerField( |
|
||||
null=True, help_text="Durée exprimée en mois entiers", blank=True |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,37 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0010_auto_20160702_1840")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", name="date_start", field=models.DateTimeField() |
|
||||
) |
|
||||
] |
|
||||
@ -1,42 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0011_auto_20160702_1911")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="facture", |
|
||||
field=models.OneToOneField( |
|
||||
on_delete=django.db.models.deletion.PROTECT, to="cotisations.Facture" |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,69 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0012_auto_20160704_0118")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Vente", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
("name", models.CharField(max_length=255)), |
|
||||
("prix", models.DecimalField(decimal_places=2, max_digits=5)), |
|
||||
("cotisation", models.BooleanField()), |
|
||||
( |
|
||||
"duration", |
|
||||
models.IntegerField( |
|
||||
null=True, |
|
||||
blank=True, |
|
||||
help_text="Durée exprimée en mois entiers", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
), |
|
||||
migrations.RemoveField(model_name="facture", name="name"), |
|
||||
migrations.RemoveField(model_name="facture", name="prix"), |
|
||||
migrations.AddField( |
|
||||
model_name="vente", |
|
||||
name="facture", |
|
||||
field=models.ForeignKey( |
|
||||
to="cotisations.Facture", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,41 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0013_auto_20160711_2240")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RemoveField(model_name="facture", name="number"), |
|
||||
migrations.AddField( |
|
||||
model_name="vente", |
|
||||
name="number", |
|
||||
field=models.IntegerField(default=1), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
] |
|
||||
@ -1,57 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.core.validators |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0014_auto_20160712_0245")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="facture", |
|
||||
name="control", |
|
||||
field=models.BooleanField(default=False), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="facture", |
|
||||
field=models.OneToOneField(to="cotisations.Facture", on_delete=models.CASCADE), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="facture", |
|
||||
field=models.ForeignKey(to="cotisations.Facture", on_delete=models.CASCADE), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="number", |
|
||||
field=models.IntegerField( |
|
||||
validators=[django.core.validators.MinValueValidator(1)] |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,47 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0015_auto_20160714_2142")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RenameField( |
|
||||
model_name="article", old_name="cotisation", new_name="iscotisation" |
|
||||
), |
|
||||
migrations.RenameField( |
|
||||
model_name="vente", old_name="cotisation", new_name="iscotisation" |
|
||||
), |
|
||||
migrations.RemoveField(model_name="cotisation", name="facture"), |
|
||||
migrations.AddField( |
|
||||
model_name="cotisation", |
|
||||
name="vente", |
|
||||
field=models.OneToOneField(to="cotisations.Vente", null=True, on_delete=models.CASCADE), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
] |
|
||||
@ -1,29 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-07-18 21:29 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0016_auto_20160715_0110")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="duration", |
|
||||
field=models.IntegerField( |
|
||||
blank=True, |
|
||||
help_text="Durée exprimée en mois entiers", |
|
||||
null=True, |
|
||||
validators=[django.core.validators.MinValueValidator(0)], |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="name", |
|
||||
field=models.CharField(max_length=255, unique=True), |
|
||||
), |
|
||||
] |
|
||||
@ -1,23 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-07-22 15:57 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0017_auto_20170718_2329")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="paiement", |
|
||||
name="type_paiement", |
|
||||
field=models.CharField( |
|
||||
choices=[("check", "Chèque"), (None, "Autre")], |
|
||||
default=None, |
|
||||
max_length=255, |
|
||||
), |
|
||||
preserve_default=False, |
|
||||
) |
|
||||
] |
|
||||
@ -1,20 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-08-18 22:55 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0018_paiement_type_paiement")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="paiement", |
|
||||
name="type_paiement", |
|
||||
field=models.CharField( |
|
||||
choices=[(0, "Autre"), (1, "Chèque")], default=0, max_length=255 |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,20 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-08-18 22:57 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0019_auto_20170819_0055")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="paiement", |
|
||||
name="type_paiement", |
|
||||
field=models.IntegerField( |
|
||||
choices=[(0, "Autre"), (1, "Chèque")], default=0, max_length=255 |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,18 +0,0 @@ |
|||||
# -*- 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), |
|
||||
) |
|
||||
] |
|
||||
@ -1,20 +0,0 @@ |
|||||
# -*- 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,18 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-09-02 11:03 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0022_auto_20170824_0128")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="paiement", |
|
||||
name="type_paiement", |
|
||||
field=models.IntegerField(choices=[(0, "Autre"), (1, "Chèque")], default=0), |
|
||||
) |
|
||||
] |
|
||||
@ -1,31 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-10-15 18:33 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0023_auto_20170902_1303")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="duration", |
|
||||
field=models.PositiveIntegerField( |
|
||||
blank=True, |
|
||||
help_text="Durée exprimée en mois entiers", |
|
||||
null=True, |
|
||||
validators=[django.core.validators.MinValueValidator(0)], |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="duration", |
|
||||
field=models.PositiveIntegerField( |
|
||||
blank=True, help_text="Durée exprimée en mois entiers", null=True |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,22 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-10-27 03:02 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0024_auto_20171015_2033")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="article", |
|
||||
name="type_user", |
|
||||
field=models.CharField( |
|
||||
choices=[("Adherent", "Adherent"), ("Club", "Club"), ("All", "All")], |
|
||||
default="All", |
|
||||
max_length=255, |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,99 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-10-27 23:26 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
def create_type(apps, schema_editor): |
|
||||
Cotisation = apps.get_model("cotisations", "Cotisation") |
|
||||
Vente = apps.get_model("cotisations", "Vente") |
|
||||
Article = apps.get_model("cotisations", "Article") |
|
||||
db_alias = schema_editor.connection.alias |
|
||||
articles = Article.objects.using(db_alias).all() |
|
||||
ventes = Vente.objects.using(db_alias).all() |
|
||||
cotisations = Cotisation.objects.using(db_alias).all() |
|
||||
for article in articles: |
|
||||
if article.iscotisation: |
|
||||
article.type_cotisation = "All" |
|
||||
article.save(using=db_alias) |
|
||||
for vente in ventes: |
|
||||
if vente.iscotisation: |
|
||||
vente.type_cotisation = "All" |
|
||||
vente.save(using=db_alias) |
|
||||
for cotisation in cotisations: |
|
||||
cotisation.type_cotisation = "All" |
|
||||
cotisation.save(using=db_alias) |
|
||||
|
|
||||
|
|
||||
def delete_type(apps, schema_editor): |
|
||||
Vente = apps.get_model("cotisations", "Vente") |
|
||||
Article = apps.get_model("cotisations", "Article") |
|
||||
db_alias = schema_editor.connection.alias |
|
||||
articles = Article.objects.using(db_alias).all() |
|
||||
ventes = Vente.objects.using(db_alias).all() |
|
||||
for article in articles: |
|
||||
if article.type_cotisation: |
|
||||
article.iscotisation = True |
|
||||
else: |
|
||||
article.iscotisation = False |
|
||||
article.save(using=db_alias) |
|
||||
for vente in ventes: |
|
||||
if vente.iscotisation: |
|
||||
vente.iscotisation = True |
|
||||
else: |
|
||||
vente.iscotisation = False |
|
||||
vente.save(using=db_alias) |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0025_article_type_user")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="article", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
blank=True, |
|
||||
choices=[ |
|
||||
("Connexion", "Connexion"), |
|
||||
("Adhesion", "Adhesion"), |
|
||||
("All", "All"), |
|
||||
], |
|
||||
default=None, |
|
||||
max_length=255, |
|
||||
null=True, |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="cotisation", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
choices=[ |
|
||||
("Connexion", "Connexion"), |
|
||||
("Adhesion", "Adhesion"), |
|
||||
("All", "All"), |
|
||||
], |
|
||||
max_length=255, |
|
||||
default="All", |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="vente", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
blank=True, |
|
||||
choices=[ |
|
||||
("Connexion", "Connexion"), |
|
||||
("Adhesion", "Adhesion"), |
|
||||
("All", "All"), |
|
||||
], |
|
||||
max_length=255, |
|
||||
null=True, |
|
||||
), |
|
||||
), |
|
||||
migrations.RunPython(create_type, delete_type), |
|
||||
migrations.RemoveField(model_name="article", name="iscotisation"), |
|
||||
migrations.RemoveField(model_name="vente", name="iscotisation"), |
|
||||
] |
|
||||
@ -1,16 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-10-29 10:56 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0026_auto_20171028_0126")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="article", name="name", field=models.CharField(max_length=255) |
|
||||
) |
|
||||
] |
|
||||
@ -1,62 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-12-30 23:07 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0027_auto_20171029_1156")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterModelOptions( |
|
||||
name="article", |
|
||||
options={"permissions": (("view_article", "Peut voir un objet article"),)}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="banque", |
|
||||
options={"permissions": (("view_banque", "Peut voir un objet banque"),)}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="cotisation", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_cotisation", "Peut voir un objet cotisation"), |
|
||||
( |
|
||||
"change_all_cotisation", |
|
||||
"Superdroit, peut modifier toutes les cotisations", |
|
||||
), |
|
||||
) |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="facture", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("change_facture_control", "Peut changer l'etat de controle"), |
|
||||
("change_facture_pdf", "Peut éditer une facture pdf"), |
|
||||
("view_facture", "Peut voir un objet facture"), |
|
||||
( |
|
||||
"change_all_facture", |
|
||||
"Superdroit, peut modifier toutes les factures", |
|
||||
), |
|
||||
) |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="paiement", |
|
||||
options={ |
|
||||
"permissions": (("view_paiement", "Peut voir un objet paiement"),) |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="vente", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_vente", "Peut voir un objet vente"), |
|
||||
("change_all_vente", "Superdroit, peut modifier toutes les ventes"), |
|
||||
) |
|
||||
}, |
|
||||
), |
|
||||
] |
|
||||
@ -1,250 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-04-14 18:56 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0028_auto_20171231_0007")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterModelOptions( |
|
||||
name="article", |
|
||||
options={ |
|
||||
"permissions": (("view_article", "Can see an article's details"),), |
|
||||
"verbose_name": "Article", |
|
||||
"verbose_name_plural": "Articles", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="banque", |
|
||||
options={ |
|
||||
"permissions": (("view_banque", "Can see a bank's details"),), |
|
||||
"verbose_name": "Bank", |
|
||||
"verbose_name_plural": "Banks", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="cotisation", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_cotisation", "Can see a cotisation's details"), |
|
||||
("change_all_cotisation", "Can edit the previous cotisations"), |
|
||||
) |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="facture", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("change_facture_control", 'Can change the "controlled" state'), |
|
||||
("change_facture_pdf", "Can create a custom PDF invoice"), |
|
||||
("view_facture", "Can see an invoice's details"), |
|
||||
("change_all_facture", "Can edit all the previous invoices"), |
|
||||
), |
|
||||
"verbose_name": "Invoice", |
|
||||
"verbose_name_plural": "Invoices", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="paiement", |
|
||||
options={ |
|
||||
"permissions": (("view_paiement", "Can see a payement's details"),), |
|
||||
"verbose_name": "Payment method", |
|
||||
"verbose_name_plural": "Payment methods", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="vente", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_vente", "Can see a purchase's details"), |
|
||||
("change_all_vente", "Can edit all the previous purchases"), |
|
||||
), |
|
||||
"verbose_name": "Purchase", |
|
||||
"verbose_name_plural": "Purchases", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="duration", |
|
||||
field=models.PositiveIntegerField( |
|
||||
blank=True, |
|
||||
null=True, |
|
||||
validators=[django.core.validators.MinValueValidator(0)], |
|
||||
verbose_name="Duration (in whole month)", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="name", |
|
||||
field=models.CharField(max_length=255, verbose_name="Designation"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="prix", |
|
||||
field=models.DecimalField( |
|
||||
decimal_places=2, max_digits=5, verbose_name="Unitary price" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
blank=True, |
|
||||
choices=[ |
|
||||
("Connexion", "Connexion"), |
|
||||
("Adhesion", "Membership"), |
|
||||
("All", "Both of them"), |
|
||||
], |
|
||||
default=None, |
|
||||
max_length=255, |
|
||||
null=True, |
|
||||
verbose_name="Type of cotisation", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="type_user", |
|
||||
field=models.CharField( |
|
||||
choices=[ |
|
||||
("Adherent", "Member"), |
|
||||
("Club", "Club"), |
|
||||
("All", "Both of them"), |
|
||||
], |
|
||||
default="All", |
|
||||
max_length=255, |
|
||||
verbose_name="Type of users concerned", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="banque", |
|
||||
name="name", |
|
||||
field=models.CharField(max_length=255, verbose_name="Name"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="date_end", |
|
||||
field=models.DateTimeField(verbose_name="Ending date"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="date_start", |
|
||||
field=models.DateTimeField(verbose_name="Starting date"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
choices=[ |
|
||||
("Connexion", "Connexion"), |
|
||||
("Adhesion", "Membership"), |
|
||||
("All", "Both of them"), |
|
||||
], |
|
||||
default="All", |
|
||||
max_length=255, |
|
||||
verbose_name="Type of cotisation", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="vente", |
|
||||
field=models.OneToOneField( |
|
||||
null=True, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
to="cotisations.Vente", |
|
||||
verbose_name="Purchase", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="cheque", |
|
||||
field=models.CharField( |
|
||||
blank=True, max_length=255, verbose_name="Cheque number" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="control", |
|
||||
field=models.BooleanField(default=False, verbose_name="Controlled"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="date", |
|
||||
field=models.DateTimeField(auto_now_add=True, verbose_name="Date"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="valid", |
|
||||
field=models.BooleanField(default=True, verbose_name="Validated"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="paiement", |
|
||||
name="moyen", |
|
||||
field=models.CharField(max_length=255, verbose_name="Method"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="paiement", |
|
||||
name="type_paiement", |
|
||||
field=models.IntegerField( |
|
||||
choices=[(0, "Standard"), (1, "Cheque")], |
|
||||
default=0, |
|
||||
verbose_name="Payment type", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="duration", |
|
||||
field=models.PositiveIntegerField( |
|
||||
blank=True, null=True, verbose_name="Duration (in whole month)" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="facture", |
|
||||
field=models.ForeignKey( |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
to="cotisations.Facture", |
|
||||
verbose_name="Invoice", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="name", |
|
||||
field=models.CharField(max_length=255, verbose_name="Article"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="number", |
|
||||
field=models.IntegerField( |
|
||||
validators=[django.core.validators.MinValueValidator(1)], |
|
||||
verbose_name="Amount", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="prix", |
|
||||
field=models.DecimalField( |
|
||||
decimal_places=2, max_digits=5, verbose_name="Price" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
blank=True, |
|
||||
choices=[ |
|
||||
("Connexion", "Connexion"), |
|
||||
("Adhesion", "Membership"), |
|
||||
("All", "Both of them"), |
|
||||
], |
|
||||
max_length=255, |
|
||||
null=True, |
|
||||
verbose_name="Type of cotisation", |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,248 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-07-02 18:56 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import re2o.aes_field |
|
||||
import cotisations.payment_methods.mixins |
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
def add_cheque(apps, schema_editor): |
|
||||
ChequePayment = apps.get_model("cotisations", "ChequePayment") |
|
||||
Payment = apps.get_model("cotisations", "Paiement") |
|
||||
for p in Payment.objects.filter(type_paiement=1): |
|
||||
cheque = ChequePayment() |
|
||||
cheque.payment = p |
|
||||
cheque.save() |
|
||||
|
|
||||
|
|
||||
def add_comnpay(apps, schema_editor): |
|
||||
ComnpayPayment = apps.get_model("cotisations", "ComnpayPayment") |
|
||||
Payment = apps.get_model("cotisations", "Paiement") |
|
||||
AssoOption = apps.get_model("preferences", "AssoOption") |
|
||||
options, _created = AssoOption.objects.get_or_create() |
|
||||
try: |
|
||||
payment = Payment.objects.get(moyen="Rechargement en ligne") |
|
||||
except Payment.DoesNotExist: |
|
||||
return |
|
||||
comnpay = ComnpayPayment() |
|
||||
comnpay.payment_user = options.payment_id |
|
||||
comnpay.payment = payment |
|
||||
comnpay.save() |
|
||||
payment.moyen = "ComnPay" |
|
||||
|
|
||||
payment.save() |
|
||||
|
|
||||
|
|
||||
def add_solde(apps, schema_editor): |
|
||||
OptionalUser = apps.get_model("preferences", "OptionalUser") |
|
||||
options, _created = OptionalUser.objects.get_or_create() |
|
||||
|
|
||||
Payment = apps.get_model("cotisations", "Paiement") |
|
||||
BalancePayment = apps.get_model("cotisations", "BalancePayment") |
|
||||
|
|
||||
try: |
|
||||
solde = Payment.objects.get(moyen="solde") |
|
||||
except Payment.DoesNotExist: |
|
||||
return |
|
||||
balance = BalancePayment() |
|
||||
balance.payment = solde |
|
||||
balance.minimum_balance = options.solde_negatif |
|
||||
balance.maximum_balance = options.max_solde |
|
||||
solde.is_balance = True |
|
||||
balance.save() |
|
||||
solde.save() |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
("preferences", "0044_remove_payment_pass"), |
|
||||
("cotisations", "0029_auto_20180414_2056"), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterModelOptions( |
|
||||
name="paiement", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_paiement", "Can see a payement's details"), |
|
||||
("use_every_payment", "Can use every payement"), |
|
||||
), |
|
||||
"verbose_name": "Payment method", |
|
||||
"verbose_name_plural": "Payment methods", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="article", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_article", "Can see an article's details"), |
|
||||
("buy_every_article", "Can buy every_article"), |
|
||||
), |
|
||||
"verbose_name": "Article", |
|
||||
"verbose_name_plural": "Articles", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="paiement", |
|
||||
name="available_for_everyone", |
|
||||
field=models.BooleanField( |
|
||||
default=False, verbose_name="Is available for every user" |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="paiement", |
|
||||
name="is_balance", |
|
||||
field=models.BooleanField( |
|
||||
default=False, |
|
||||
editable=False, |
|
||||
help_text="There should be only one balance payment method.", |
|
||||
verbose_name="Is user balance", |
|
||||
validators=[cotisations.models.check_no_balance], |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="article", |
|
||||
name="available_for_everyone", |
|
||||
field=models.BooleanField( |
|
||||
default=False, verbose_name="Is available for every user" |
|
||||
), |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="ChequePayment", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"payment", |
|
||||
models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model), |
|
||||
options={"verbose_name": "Cheque"}, |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="ComnpayPayment", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"payment_credential", |
|
||||
models.CharField( |
|
||||
blank=True, |
|
||||
default="", |
|
||||
max_length=255, |
|
||||
verbose_name="ComNpay VAD Number", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"payment_pass", |
|
||||
re2o.aes_field.AESEncryptedField( |
|
||||
blank=True, |
|
||||
max_length=255, |
|
||||
null=True, |
|
||||
verbose_name="ComNpay Secret Key", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"payment", |
|
||||
models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"minimum_payment", |
|
||||
models.DecimalField( |
|
||||
decimal_places=2, |
|
||||
default=1, |
|
||||
help_text="The minimal amount of money you have to use when paying with ComNpay", |
|
||||
max_digits=5, |
|
||||
verbose_name="Minimum payment", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model), |
|
||||
options={"verbose_name": "ComNpay"}, |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="BalancePayment", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"minimum_balance", |
|
||||
models.DecimalField( |
|
||||
decimal_places=2, |
|
||||
default=0, |
|
||||
help_text="The minimal amount of money allowed for the balance at the end of a payment. You can specify negative amount.", |
|
||||
max_digits=5, |
|
||||
verbose_name="Minimum balance", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"payment", |
|
||||
models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"maximum_balance", |
|
||||
models.DecimalField( |
|
||||
decimal_places=2, |
|
||||
default=50, |
|
||||
help_text="The maximal amount of money allowed for the balance.", |
|
||||
max_digits=5, |
|
||||
verbose_name="Maximum balance", |
|
||||
null=True, |
|
||||
blank=True, |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"credit_balance_allowed", |
|
||||
models.BooleanField( |
|
||||
default=False, verbose_name="Allow user to credit their balance" |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model), |
|
||||
options={"verbose_name": "User Balance"}, |
|
||||
), |
|
||||
migrations.RunPython(add_comnpay), |
|
||||
migrations.RunPython(add_cheque), |
|
||||
migrations.RunPython(add_solde), |
|
||||
migrations.RemoveField(model_name="paiement", name="type_paiement"), |
|
||||
] |
|
||||
@ -1,21 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-08-11 23:03 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0030_custom_payment")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="comnpaypayment", |
|
||||
name="production", |
|
||||
field=models.BooleanField( |
|
||||
default=True, |
|
||||
verbose_name="Production mode enabled (production url, instead of homologation)", |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,154 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-07-21 20:01 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
from django.contrib.auth.management import create_permissions |
|
||||
import re2o.field_permissions |
|
||||
import re2o.mixins |
|
||||
|
|
||||
|
|
||||
def reattribute_ids(apps, schema_editor): |
|
||||
Facture = apps.get_model("cotisations", "Facture") |
|
||||
BaseInvoice = apps.get_model("cotisations", "BaseInvoice") |
|
||||
|
|
||||
for f in Facture.objects.all(): |
|
||||
base = BaseInvoice.objects.create(id=f.pk) |
|
||||
base.date = f.date |
|
||||
base.save() |
|
||||
f.baseinvoice_ptr = base |
|
||||
f.save() |
|
||||
|
|
||||
|
|
||||
def update_rights(apps, schema_editor): |
|
||||
Permission = apps.get_model("auth", "Permission") |
|
||||
|
|
||||
# creates needed permissions |
|
||||
app = apps.get_app_config("cotisations") |
|
||||
app.models_module = True |
|
||||
create_permissions(app) |
|
||||
app.models_module = False |
|
||||
|
|
||||
ContentType = apps.get_model("contenttypes", "ContentType") |
|
||||
content_type = ContentType.objects.get_for_model(Permission) |
|
||||
former, created = Permission.objects.get_or_create( |
|
||||
codename="change_facture_pdf", content_type=content_type |
|
||||
) |
|
||||
new_1 = Permission.objects.get(codename="add_custominvoice") |
|
||||
new_2 = Permission.objects.get(codename="change_custominvoice") |
|
||||
new_3 = Permission.objects.get(codename="view_custominvoice") |
|
||||
new_4 = Permission.objects.get(codename="delete_custominvoice") |
|
||||
for group in former.group_set.all(): |
|
||||
group.permissions.remove(former) |
|
||||
group.permissions.add(new_1) |
|
||||
group.permissions.add(new_2) |
|
||||
group.permissions.add(new_3) |
|
||||
group.permissions.add(new_4) |
|
||||
group.save() |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0031_comnpaypayment_production")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="BaseInvoice", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
("date", models.DateTimeField(auto_now_add=True, verbose_name="Date")), |
|
||||
], |
|
||||
bases=( |
|
||||
re2o.mixins.RevMixin, |
|
||||
re2o.mixins.AclMixin, |
|
||||
re2o.field_permissions.FieldPermissionModelMixin, |
|
||||
models.Model, |
|
||||
), |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="CustomInvoice", |
|
||||
fields=[ |
|
||||
( |
|
||||
"baseinvoice_ptr", |
|
||||
models.OneToOneField( |
|
||||
auto_created=True, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
parent_link=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
to="cotisations.BaseInvoice", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"recipient", |
|
||||
models.CharField(max_length=255, verbose_name="Recipient"), |
|
||||
), |
|
||||
( |
|
||||
"payment", |
|
||||
models.CharField(max_length=255, verbose_name="Payment type"), |
|
||||
), |
|
||||
("address", models.CharField(max_length=255, verbose_name="Address")), |
|
||||
("paid", models.BooleanField(verbose_name="Paid")), |
|
||||
], |
|
||||
bases=("cotisations.baseinvoice",), |
|
||||
options={ |
|
||||
"permissions": (("view_custominvoice", "Can view a custom invoice"),) |
|
||||
}, |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="facture", |
|
||||
name="baseinvoice_ptr", |
|
||||
field=models.OneToOneField( |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
to="cotisations.BaseInvoice", |
|
||||
null=True, |
|
||||
), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.RunPython(reattribute_ids), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="facture", |
|
||||
field=models.ForeignKey( |
|
||||
on_delete=models.CASCADE, |
|
||||
verbose_name="Invoice", |
|
||||
to="cotisations.BaseInvoice", |
|
||||
), |
|
||||
), |
|
||||
migrations.RemoveField(model_name="facture", name="id"), |
|
||||
migrations.RemoveField(model_name="facture", name="date"), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="baseinvoice_ptr", |
|
||||
field=models.OneToOneField( |
|
||||
auto_created=True, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
parent_link=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
to="cotisations.BaseInvoice", |
|
||||
), |
|
||||
), |
|
||||
migrations.RunPython(update_rights), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="facture", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("change_facture_control", 'Can change the "controlled" state'), |
|
||||
("view_facture", "Can see an invoice's details"), |
|
||||
("change_all_facture", "Can edit all the previous invoices"), |
|
||||
), |
|
||||
"verbose_name": "Invoice", |
|
||||
"verbose_name_plural": "Invoices", |
|
||||
}, |
|
||||
), |
|
||||
] |
|
||||
@ -1,304 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-08-18 11:19 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import cotisations.validators |
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
import re2o.aes_field |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0032_custom_invoice")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterModelOptions( |
|
||||
name="article", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_article", "Can view an article object"), |
|
||||
("buy_every_article", "Can buy every article"), |
|
||||
), |
|
||||
"verbose_name": "article", |
|
||||
"verbose_name_plural": "articles", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="balancepayment", options={"verbose_name": "user balance"} |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="banque", |
|
||||
options={ |
|
||||
"permissions": (("view_banque", "Can view a bank object"),), |
|
||||
"verbose_name": "bank", |
|
||||
"verbose_name_plural": "banks", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="cotisation", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_cotisation", "Can view a subscription object"), |
|
||||
("change_all_cotisation", "Can edit the previous subscriptions"), |
|
||||
), |
|
||||
"verbose_name": "subscription", |
|
||||
"verbose_name_plural": "subscriptions", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="custominvoice", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_custominvoice", "Can view a custom invoice object"), |
|
||||
) |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="facture", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("change_facture_control", 'Can edit the "controlled" state'), |
|
||||
("view_facture", "Can view an invoice object"), |
|
||||
("change_all_facture", "Can edit all the previous invoices"), |
|
||||
), |
|
||||
"verbose_name": "invoice", |
|
||||
"verbose_name_plural": "invoices", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="paiement", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_paiement", "Can view a payment method object"), |
|
||||
("use_every_payment", "Can use every payment method"), |
|
||||
), |
|
||||
"verbose_name": "payment method", |
|
||||
"verbose_name_plural": "payment methods", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterModelOptions( |
|
||||
name="vente", |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_vente", "Can view a purchase object"), |
|
||||
("change_all_vente", "Can edit all the previous purchases"), |
|
||||
), |
|
||||
"verbose_name": "purchase", |
|
||||
"verbose_name_plural": "purchases", |
|
||||
}, |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="available_for_everyone", |
|
||||
field=models.BooleanField( |
|
||||
default=False, verbose_name="is available for every user" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="duration", |
|
||||
field=models.PositiveIntegerField( |
|
||||
blank=True, |
|
||||
null=True, |
|
||||
validators=[django.core.validators.MinValueValidator(0)], |
|
||||
verbose_name="duration (in months)", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="name", |
|
||||
field=models.CharField(max_length=255, verbose_name="designation"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="prix", |
|
||||
field=models.DecimalField( |
|
||||
decimal_places=2, max_digits=5, verbose_name="unit price" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
blank=True, |
|
||||
choices=[ |
|
||||
("Connexion", "Connection"), |
|
||||
("Adhesion", "Membership"), |
|
||||
("All", "Both of them"), |
|
||||
], |
|
||||
default=None, |
|
||||
max_length=255, |
|
||||
null=True, |
|
||||
verbose_name="subscription type", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="type_user", |
|
||||
field=models.CharField( |
|
||||
choices=[ |
|
||||
("Adherent", "Member"), |
|
||||
("Club", "Club"), |
|
||||
("All", "Both of them"), |
|
||||
], |
|
||||
default="All", |
|
||||
max_length=255, |
|
||||
verbose_name="type of users concerned", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="banque", name="name", field=models.CharField(max_length=255) |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="comnpaypayment", |
|
||||
name="payment_credential", |
|
||||
field=models.CharField( |
|
||||
blank=True, |
|
||||
default="", |
|
||||
max_length=255, |
|
||||
verbose_name="ComNpay VAT Number", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="comnpaypayment", |
|
||||
name="payment_pass", |
|
||||
field=re2o.aes_field.AESEncryptedField( |
|
||||
blank=True, max_length=255, null=True, verbose_name="ComNpay secret key" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="comnpaypayment", |
|
||||
name="production", |
|
||||
field=models.BooleanField( |
|
||||
default=True, |
|
||||
verbose_name="Production mode enabled (production URL, instead of homologation)", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="date_end", |
|
||||
field=models.DateTimeField(verbose_name="end date"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="date_start", |
|
||||
field=models.DateTimeField(verbose_name="start date"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
choices=[ |
|
||||
("Connexion", "Connection"), |
|
||||
("Adhesion", "Membership"), |
|
||||
("All", "Both of them"), |
|
||||
], |
|
||||
default="All", |
|
||||
max_length=255, |
|
||||
verbose_name="subscription type", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="cotisation", |
|
||||
name="vente", |
|
||||
field=models.OneToOneField( |
|
||||
null=True, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
to="cotisations.Vente", |
|
||||
verbose_name="purchase", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="cheque", |
|
||||
field=models.CharField( |
|
||||
blank=True, max_length=255, verbose_name="cheque number" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="control", |
|
||||
field=models.BooleanField(default=False, verbose_name="controlled"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="valid", |
|
||||
field=models.BooleanField(default=True, verbose_name="validated"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="paiement", |
|
||||
name="available_for_everyone", |
|
||||
field=models.BooleanField( |
|
||||
default=False, verbose_name="is available for every user" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="paiement", |
|
||||
name="is_balance", |
|
||||
field=models.BooleanField( |
|
||||
default=False, |
|
||||
editable=False, |
|
||||
help_text="There should be only one balance payment method.", |
|
||||
validators=[cotisations.validators.check_no_balance], |
|
||||
verbose_name="is user balance", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="paiement", |
|
||||
name="moyen", |
|
||||
field=models.CharField(max_length=255, verbose_name="method"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="duration", |
|
||||
field=models.PositiveIntegerField( |
|
||||
blank=True, null=True, verbose_name="duration (in months)" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="facture", |
|
||||
field=models.ForeignKey( |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
to="cotisations.BaseInvoice", |
|
||||
verbose_name="invoice", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="name", |
|
||||
field=models.CharField(max_length=255, verbose_name="article"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="number", |
|
||||
field=models.IntegerField( |
|
||||
validators=[django.core.validators.MinValueValidator(1)], |
|
||||
verbose_name="amount", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="prix", |
|
||||
field=models.DecimalField( |
|
||||
decimal_places=2, max_digits=5, verbose_name="price" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="type_cotisation", |
|
||||
field=models.CharField( |
|
||||
blank=True, |
|
||||
choices=[ |
|
||||
("Connexion", "Connection"), |
|
||||
("Adhesion", "Membership"), |
|
||||
("All", "Both of them"), |
|
||||
], |
|
||||
max_length=255, |
|
||||
null=True, |
|
||||
verbose_name="subscription type", |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,18 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-08-31 13:32 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0033_auto_20180818_1319")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="facture", |
|
||||
name="valid", |
|
||||
field=models.BooleanField(default=False, verbose_name="validated"), |
|
||||
) |
|
||||
] |
|
||||
@ -1,43 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-09-01 11:27 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import cotisations.payment_methods.mixins |
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0034_auto_20180831_1532")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="NotePayment", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
("server", models.CharField(max_length=255, verbose_name="server")), |
|
||||
("port", models.PositiveIntegerField(blank=True, null=True)), |
|
||||
("id_note", models.PositiveIntegerField(blank=True, null=True)), |
|
||||
( |
|
||||
"payment", |
|
||||
models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
options={"verbose_name": "NoteKfet"}, |
|
||||
bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model), |
|
||||
) |
|
||||
] |
|
||||
@ -1,18 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-12-29 14:22 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0035_notepayment")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="custominvoice", |
|
||||
name="remark", |
|
||||
field=models.TextField(blank=True, null=True, verbose_name="Remark"), |
|
||||
) |
|
||||
] |
|
||||
@ -1,47 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-12-29 21:03 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0036_custominvoice_remark")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="CostEstimate", |
|
||||
fields=[ |
|
||||
( |
|
||||
"custominvoice_ptr", |
|
||||
models.OneToOneField( |
|
||||
auto_created=True, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
parent_link=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
to="cotisations.CustomInvoice", |
|
||||
), |
|
||||
), |
|
||||
("validity", models.DurationField(verbose_name="Period of validity")), |
|
||||
( |
|
||||
"final_invoice", |
|
||||
models.ForeignKey( |
|
||||
blank=True, |
|
||||
null=True, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="origin_cost_estimate", |
|
||||
to="cotisations.CustomInvoice", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
options={ |
|
||||
"permissions": ( |
|
||||
("view_costestimate", "Can view a cost estimate object"), |
|
||||
) |
|
||||
}, |
|
||||
bases=("cotisations.custominvoice",), |
|
||||
) |
|
||||
] |
|
||||
@ -1,37 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-12-31 22:57 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0037_costestimate")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="costestimate", |
|
||||
name="final_invoice", |
|
||||
field=models.ForeignKey( |
|
||||
blank=True, |
|
||||
null=True, |
|
||||
on_delete=django.db.models.deletion.SET_NULL, |
|
||||
related_name="origin_cost_estimate", |
|
||||
to="cotisations.CustomInvoice", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="costestimate", |
|
||||
name="validity", |
|
||||
field=models.DurationField( |
|
||||
help_text="DD HH:MM:SS", verbose_name="Period of validity" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="custominvoice", |
|
||||
name="paid", |
|
||||
field=models.BooleanField(default=False, verbose_name="Paid"), |
|
||||
), |
|
||||
] |
|
||||
@ -1,40 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.23 on 2019-09-30 09:19 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import cotisations.payment_methods.mixins |
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0038_auto_20181231_1657")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="FreePayment", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"payment", |
|
||||
models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
options={"verbose_name": "Free payment"}, |
|
||||
bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model), |
|
||||
) |
|
||||
] |
|
||||
@ -1,34 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.23 on 2019-10-02 21:35 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0039_freepayment")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="article", |
|
||||
name="duration_days", |
|
||||
field=models.PositiveIntegerField( |
|
||||
blank=True, |
|
||||
null=True, |
|
||||
validators=[django.core.validators.MinValueValidator(0)], |
|
||||
verbose_name="duration (in days, will be added to duration in months)", |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="vente", |
|
||||
name="duration_days", |
|
||||
field=models.PositiveIntegerField( |
|
||||
blank=True, |
|
||||
null=True, |
|
||||
validators=[django.core.validators.MinValueValidator(0)], |
|
||||
verbose_name="duration (in days, will be added to duration in months)", |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,64 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.23 on 2019-11-03 20:31 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("cotisations", "0040_auto_20191002_2335")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="balancepayment", |
|
||||
name="payment", |
|
||||
field=models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method_balance", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="chequepayment", |
|
||||
name="payment", |
|
||||
field=models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method_cheque", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="comnpaypayment", |
|
||||
name="payment", |
|
||||
field=models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method_comnpay", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="freepayment", |
|
||||
name="payment", |
|
||||
field=models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method_free", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="notepayment", |
|
||||
name="payment", |
|
||||
field=models.OneToOneField( |
|
||||
editable=False, |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
related_name="payment_method_note", |
|
||||
to="cotisations.Paiement", |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,79 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.23 on 2019-11-20 00:59 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0041_auto_20191103_2131'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterModelOptions( |
|
||||
name='chequepayment', |
|
||||
options={'verbose_name': 'cheque'}, |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='balancepayment', |
|
||||
name='credit_balance_allowed', |
|
||||
field=models.BooleanField(default=False, verbose_name='allow user to credit their balance'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='balancepayment', |
|
||||
name='maximum_balance', |
|
||||
field=models.DecimalField(blank=True, decimal_places=2, default=50, help_text='The maximal amount of money allowed for the balance.', max_digits=5, null=True, verbose_name='maximum balance'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='balancepayment', |
|
||||
name='minimum_balance', |
|
||||
field=models.DecimalField(decimal_places=2, default=0, help_text='The minimal amount of money allowed for the balance at the end of a payment. You can specify a negative amount.', max_digits=5, verbose_name='minimum balance'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='baseinvoice', |
|
||||
name='date', |
|
||||
field=models.DateTimeField(auto_now_add=True, verbose_name='date'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='comnpaypayment', |
|
||||
name='minimum_payment', |
|
||||
field=models.DecimalField(decimal_places=2, default=1, help_text='The minimal amount of money you have to use when paying with ComNpay.', max_digits=5, verbose_name='minimum payment'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='comnpaypayment', |
|
||||
name='production', |
|
||||
field=models.BooleanField(default=True, verbose_name='production mode enabled (production URL, instead of homologation)'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='costestimate', |
|
||||
name='validity', |
|
||||
field=models.DurationField(help_text='DD HH:MM:SS', verbose_name='period of validity'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='custominvoice', |
|
||||
name='address', |
|
||||
field=models.CharField(max_length=255, verbose_name='address'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='custominvoice', |
|
||||
name='paid', |
|
||||
field=models.BooleanField(default=False, verbose_name='paid'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='custominvoice', |
|
||||
name='payment', |
|
||||
field=models.CharField(max_length=255, verbose_name='payment type'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='custominvoice', |
|
||||
name='recipient', |
|
||||
field=models.CharField(max_length=255, verbose_name='recipient'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='custominvoice', |
|
||||
name='remark', |
|
||||
field=models.TextField(blank=True, null=True, verbose_name='remark'), |
|
||||
), |
|
||||
] |
|
||||
@ -1,117 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-09-20 17:19 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
import django.utils.timezone |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0042_auto_20191120_0159'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='article', |
|
||||
# name='duration', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='article', |
|
||||
# name='duration_days', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='article', |
|
||||
# name='type_cotisation', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='cotisation', |
|
||||
# name='date_end', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='cotisation', |
|
||||
# name='date_start', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='cotisation', |
|
||||
# name='type_cotisation', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='vente', |
|
||||
# name='duration', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='vente', |
|
||||
# name='duration_days', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='vente', |
|
||||
# name='type_cotisation', |
|
||||
# ), |
|
||||
migrations.AddField( |
|
||||
model_name='article', |
|
||||
name='duration_connection', |
|
||||
field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the connection (in months)'), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='article', |
|
||||
name='duration_days_connection', |
|
||||
field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the connection (in days, will be added to duration in months)'), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='article', |
|
||||
name='duration_days_membership', |
|
||||
field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the membership (in days, will be added to duration in months)'), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='article', |
|
||||
name='duration_membership', |
|
||||
field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the membership (in months)'), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='cotisation', |
|
||||
name='date_end_con', |
|
||||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='end date for the connection'), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='cotisation', |
|
||||
name='date_end_memb', |
|
||||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='end date for the membership'), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='cotisation', |
|
||||
name='date_start_con', |
|
||||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='start date for the connection'), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='cotisation', |
|
||||
name='date_start_memb', |
|
||||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='start date for the membership'), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='vente', |
|
||||
name='duration_connection', |
|
||||
field=models.PositiveIntegerField(blank=True, null=True, verbose_name='duration of the connection (in months)'), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='vente', |
|
||||
name='duration_days_connection', |
|
||||
field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the connection (in days, will be added to duration in months)'), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='vente', |
|
||||
name='duration_days_membership', |
|
||||
field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the membership (in days, will be added to duration in months)'), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name='vente', |
|
||||
name='duration_membership', |
|
||||
field=models.PositiveIntegerField(blank=True, null=True, verbose_name='duration of the membership (in months)'), |
|
||||
), |
|
||||
] |
|
||||
@ -1,140 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-09-20 17:19 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
import django.utils.timezone |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0043_separation_membership_connection_p1'), |
|
||||
] |
|
||||
|
|
||||
def split_dates(apps, schema_editor): |
|
||||
db_alias = schema_editor.connection.alias |
|
||||
cotisation = apps.get_model("cotisations", "Cotisation") |
|
||||
cotisations = cotisation.objects.using(db_alias).all() |
|
||||
for cotis in cotisations: |
|
||||
cotis.date_start_con = cotis.date_start |
|
||||
cotis.date_start_memb = cotis.date_start |
|
||||
cotis.date_end_con = cotis.date_end |
|
||||
cotis.date_end_memb = cotis.date_end |
|
||||
if cotis.type_cotisation == 'Connexion': |
|
||||
cotis.date_end_memb = cotis.date_start |
|
||||
if cotis.type_cotisation == 'Adhesion': |
|
||||
cotis.date_end_con = cotis.date_start |
|
||||
cotis.save() |
|
||||
|
|
||||
|
|
||||
|
|
||||
def split_duration_articles_and_ventes(apps, schema_editor): |
|
||||
def split_duration(e): |
|
||||
e.duration_membership = e.duration |
|
||||
e.duration_connection = e.duration |
|
||||
e.duration_days_membership = e.duration_days |
|
||||
e.duration_days_connection = e.duration_days |
|
||||
if e.type_cotisation == 'Connexion': |
|
||||
e.duration_membership = 0 |
|
||||
e.duration_days_membership = 0 |
|
||||
if e.type_cotisation == 'Adhesion': |
|
||||
e.duration_connection = 0 |
|
||||
e.duration_days_connection = 0 |
|
||||
e.save() |
|
||||
db_alias = schema_editor.connection.alias |
|
||||
article = apps.get_model("cotisations", "Article") |
|
||||
vente = apps.get_model("cotisations", "Vente") |
|
||||
for a in article.objects.using(db_alias).all(): |
|
||||
split_duration(a) |
|
||||
for v in vente.objects.using(db_alias).all(): |
|
||||
split_duration(v) |
|
||||
|
|
||||
def unsplit_dates(apps, schema_editor): |
|
||||
db_alias = schema_editor.connection.alias |
|
||||
cotisation = apps.get_model("cotisations", "Cotisation") |
|
||||
cotisations = cotisation.objects.using(db_alias).all() |
|
||||
for cotis in cotisations: |
|
||||
connection = cotis.date_start_con != cotis.date_end_con |
|
||||
adhesion = cotis.date_start_memb != cotis.date_end_memb |
|
||||
cotis.date_start = cotis.date_start_con |
|
||||
cotis.date_end = max(cotis.date_end_con, cotis.date_end_memb) |
|
||||
if connection: |
|
||||
cotis.type_cotisation = 'Connexion' |
|
||||
if adhesion: |
|
||||
cotis.type_cotisation = 'Adhesion' |
|
||||
if connection and adhesion: |
|
||||
cotis.type_cotisation = 'All' |
|
||||
if not (connection or adhesion): |
|
||||
cotis.type_cotisation = None |
|
||||
cotis.save() |
|
||||
|
|
||||
|
|
||||
|
|
||||
def unsplit_duration_articles_and_ventes(apps, schema_editor): |
|
||||
def unsplit_duration(e): |
|
||||
e.duration = max(e.duration_membership, e.duration_connection) |
|
||||
e.duration_days = max(e.duration_days_membership, e.duration_days_connection) |
|
||||
connection = not (((e.duration_connection == 0) or (e.duration_connection__isnull)) and \ |
|
||||
((e.duration_days_connection == 0) or (e.duration_days_connection__isnull))) |
|
||||
membership = not (((e.duration_membership == 0) or (e.duration_membership__isnull)) and \ |
|
||||
((e.duration_days_membership == 0) or (e.duration_days_membership__isnull))) |
|
||||
if connection: |
|
||||
e.type_cotisation = 'Connection' |
|
||||
if membership: |
|
||||
e.type_cotisation = 'Adhesion' |
|
||||
if connection and membership: |
|
||||
e.type_cotisation = 'All' |
|
||||
if not (connection or membership): |
|
||||
e.type_cotisation = None |
|
||||
e.save() |
|
||||
db_alias = schema_editor.connection.alias |
|
||||
article = apps.get_model("cotisations", "Article") |
|
||||
vente = apps.get_model("cotisations", "Vente") |
|
||||
for a in article.objects.using(db_alias).all(): |
|
||||
unsplit_duration(a) |
|
||||
for v in vente.objects.using(db_alias).all(): |
|
||||
unsplit_duration(v) |
|
||||
|
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RunPython(split_dates, unsplit_dates), |
|
||||
migrations.RunPython(split_duration_articles_and_ventes, unsplit_duration_articles_and_ventes), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='article', |
|
||||
# name='duration', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='article', |
|
||||
# name='duration_days', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='article', |
|
||||
# name='type_cotisation', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='cotisation', |
|
||||
# name='date_end', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='cotisation', |
|
||||
# name='date_start', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='cotisation', |
|
||||
# name='type_cotisation', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='vente', |
|
||||
# name='duration', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='vente', |
|
||||
# name='duration_days', |
|
||||
# ), |
|
||||
# migrations.RemoveField( |
|
||||
# model_name='vente', |
|
||||
# name='type_cotisation', |
|
||||
# ), |
|
||||
] |
|
||||
@ -1,53 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-09-20 17:19 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
import django.utils.timezone |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0044_separation_membership_connection_p2'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RemoveField( |
|
||||
model_name='article', |
|
||||
name='duration', |
|
||||
), |
|
||||
migrations.RemoveField( |
|
||||
model_name='article', |
|
||||
name='duration_days', |
|
||||
), |
|
||||
migrations.RemoveField( |
|
||||
model_name='article', |
|
||||
name='type_cotisation', |
|
||||
), |
|
||||
migrations.RemoveField( |
|
||||
model_name='cotisation', |
|
||||
name='date_end', |
|
||||
), |
|
||||
migrations.RemoveField( |
|
||||
model_name='cotisation', |
|
||||
name='date_start', |
|
||||
), |
|
||||
migrations.RemoveField( |
|
||||
model_name='cotisation', |
|
||||
name='type_cotisation', |
|
||||
), |
|
||||
migrations.RemoveField( |
|
||||
model_name='vente', |
|
||||
name='duration', |
|
||||
), |
|
||||
migrations.RemoveField( |
|
||||
model_name='vente', |
|
||||
name='duration_days', |
|
||||
), |
|
||||
migrations.RemoveField( |
|
||||
model_name='vente', |
|
||||
name='type_cotisation', |
|
||||
), |
|
||||
] |
|
||||
@ -1,20 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-09-25 16:45 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0045_separation_membership_connection_p3'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name='article', |
|
||||
name='need_membership', |
|
||||
field=models.BooleanField(default=True, verbose_name='can be purcharsed without membership'), |
|
||||
), |
|
||||
] |
|
||||
@ -1,28 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-09-25 16:45 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0046_article_need_membership'), |
|
||||
] |
|
||||
|
|
||||
def init_need_membership(apps, schema_editor): |
|
||||
db_alias = schema_editor.connection.alias |
|
||||
article = apps.get_model("cotisations", "Article") |
|
||||
articles = article.objects.using(db_alias).all() |
|
||||
for art in articles: |
|
||||
v = False |
|
||||
v = v or bool(art.duration_membership) |
|
||||
v = v or bool(art.duration_days_membership) |
|
||||
v = v or not (bool(art.duration_connection) or bool(art.duration_days_connection)) |
|
||||
art.need_membership = v |
|
||||
art.save() |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RunPython(init_need_membership, lambda *args, **kargs: None), |
|
||||
] |
|
||||
@ -1,26 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-10-16 22:18 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0047_article_need_membership_init'), |
|
||||
] |
|
||||
|
|
||||
|
|
||||
def set_value_to_zero(apps, schema_editor): |
|
||||
db_alias = schema_editor.connection.alias |
|
||||
Vente = apps.get_model("cotisations", "Vente") |
|
||||
Vente.objects.using(db_alias).filter(duration_connection__isnull=True).update(duration_connection=0) |
|
||||
Vente.objects.using(db_alias).filter(duration_days_connection__isnull=True).update(duration_days_connection=0) |
|
||||
Vente.objects.using(db_alias).filter(duration_membership__isnull=True).update(duration_membership=0) |
|
||||
Vente.objects.using(db_alias).filter(duration_days_membership__isnull=True).update(duration_days_membership=0) |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RunPython(set_value_to_zero), |
|
||||
] |
|
||||
@ -1,41 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-11-02 22:05 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0048_auto_20201017_0018'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name='article', |
|
||||
name='need_membership', |
|
||||
field=models.BooleanField(default=True, verbose_name='need membership to be purchased'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='vente', |
|
||||
name='duration_connection', |
|
||||
field=models.PositiveIntegerField(default=0, verbose_name='duration of the connection (in months)'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='vente', |
|
||||
name='duration_days_connection', |
|
||||
field=models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the connection (in days, will be added to duration in months)'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='vente', |
|
||||
name='duration_days_membership', |
|
||||
field=models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the membership (in days, will be added to duration in months)'), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='vente', |
|
||||
name='duration_membership', |
|
||||
field=models.PositiveIntegerField(default=0, verbose_name='duration of the membership (in months)'), |
|
||||
), |
|
||||
] |
|
||||
@ -1,40 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-11-02 22:42 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
import django.core.validators |
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('cotisations', '0049_auto_20201102_2305'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name='article', |
|
||||
name='duration_connection', |
|
||||
field=models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the connection (in months)'), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='article', |
|
||||
name='duration_days_connection', |
|
||||
field=models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the connection (in days, will be added to duration in months)'), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='article', |
|
||||
name='duration_days_membership', |
|
||||
field=models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the membership (in days, will be added to duration in months)'), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name='article', |
|
||||
name='duration_membership', |
|
||||
field=models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='duration of the membership (in months)'), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
] |
|
||||
@ -1,59 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.29 on 2020-12-28 15:36 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
("cotisations", "0050_auto_20201102_2342"), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="duration_connection", |
|
||||
field=models.PositiveIntegerField( |
|
||||
verbose_name="duration of the connection (in months)" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="duration_days_connection", |
|
||||
field=models.PositiveIntegerField( |
|
||||
verbose_name="duration of the connection (in days, will be added to duration in months)" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="duration_days_membership", |
|
||||
field=models.PositiveIntegerField( |
|
||||
verbose_name="duration of the membership (in days, will be added to duration in months)" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="article", |
|
||||
name="duration_membership", |
|
||||
field=models.PositiveIntegerField( |
|
||||
verbose_name="duration of the membership (in months)" |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="duration_days_connection", |
|
||||
field=models.PositiveIntegerField( |
|
||||
default=0, |
|
||||
verbose_name="duration of the connection (in days, will be added to duration in months)", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="vente", |
|
||||
name="duration_days_membership", |
|
||||
field=models.PositiveIntegerField( |
|
||||
default=0, |
|
||||
verbose_name="duration of the membership (in days, will be added to duration in months)", |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,78 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("users", "0005_auto_20160702_0006")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Machine", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
verbose_name="ID", |
|
||||
serialize=False, |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
), |
|
||||
) |
|
||||
], |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="MachineType", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
verbose_name="ID", |
|
||||
serialize=False, |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
), |
|
||||
), |
|
||||
("type", models.CharField(max_length=255)), |
|
||||
], |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="machine", |
|
||||
name="type", |
|
||||
field=models.ForeignKey( |
|
||||
to="machines.MachineType", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="machine", |
|
||||
name="user", |
|
||||
field=models.ForeignKey( |
|
||||
to="users.User", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,86 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
import macaddress.fields |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0001_initial")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Interface", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
), |
|
||||
), |
|
||||
("ipv6", models.GenericIPAddressField(protocol="IPv6")), |
|
||||
("mac_address", macaddress.fields.MACAddressField(integer=True)), |
|
||||
("details", models.CharField(max_length=255)), |
|
||||
("name", models.CharField(max_length=255, blank=True, unique=True)), |
|
||||
], |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="IpList", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
), |
|
||||
), |
|
||||
("ipv4", models.GenericIPAddressField(protocol="IPv4")), |
|
||||
], |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="interface", |
|
||||
name="ipv4", |
|
||||
field=models.OneToOneField( |
|
||||
null=True, |
|
||||
to="machines.IpList", |
|
||||
blank=True, |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="interface", |
|
||||
name="machine", |
|
||||
field=models.ForeignKey( |
|
||||
to="machines.Machine", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,40 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import macaddress.fields |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0002_auto_20160703_1444")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="mac_address", |
|
||||
field=macaddress.fields.MACAddressField(integer=True, unique=True), |
|
||||
) |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0003_auto_20160703_1450")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="iplist", |
|
||||
name="ipv4", |
|
||||
field=models.GenericIPAddressField(protocol="IPv4", unique=True), |
|
||||
) |
|
||||
] |
|
||||
@ -1,42 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0004_auto_20160703_1451")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RenameField(model_name="interface", old_name="name", new_name="dns"), |
|
||||
migrations.AddField( |
|
||||
model_name="machine", |
|
||||
name="name", |
|
||||
field=models.CharField( |
|
||||
blank=True, unique=True, max_length=255, help_text="Optionnel" |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,44 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0005_auto_20160703_1523")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="details", |
|
||||
field=models.CharField(max_length=255, blank=True), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField(max_length=255, unique=True), |
|
||||
), |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0006_auto_20160703_1813")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="ipv6", |
|
||||
field=models.GenericIPAddressField(null=True, protocol="IPv6"), |
|
||||
) |
|
||||
] |
|
||||
@ -1,33 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0007_auto_20160703_1816")] |
|
||||
|
|
||||
operations = [migrations.RemoveField(model_name="interface", name="ipv6")] |
|
||||
@ -1,42 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import macaddress.fields |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0008_remove_interface_ipv6")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="mac_address", |
|
||||
field=macaddress.fields.MACAddressField( |
|
||||
integer=False, max_length=17, unique=True |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,45 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0009_auto_20160703_2358")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="machine", |
|
||||
name="name", |
|
||||
field=models.CharField( |
|
||||
blank=True, |
|
||||
unique=True, |
|
||||
max_length=255, |
|
||||
help_text="Optionnel", |
|
||||
null=True, |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,41 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0010_auto_20160704_0104")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="machine", |
|
||||
name="name", |
|
||||
field=models.CharField( |
|
||||
help_text="Optionnel", blank=True, null=True, max_length=255 |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,41 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0011_auto_20160704_0105")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField( |
|
||||
max_length=255, help_text="Obligatoire et unique", unique=True |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,46 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0012_auto_20160704_0118")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="machine", name="active", field=models.BooleanField(default=True) |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField( |
|
||||
max_length=255, |
|
||||
unique=True, |
|
||||
help_text="Obligatoire et unique, doit se terminer en .rez et ne pas comporter de points", |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,44 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import machines.models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0013_auto_20160705_1014")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField( |
|
||||
unique=True, |
|
||||
max_length=255, |
|
||||
help_text="Obligatoire et unique, doit se terminer en .rez et ne pas comporter d'autres points", |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,44 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import models, migrations |
|
||||
import machines.models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0014_auto_20160706_1220")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField( |
|
||||
unique=True, |
|
||||
help_text="Obligatoire et unique, doit se terminer en .example et ne pas comporter d'autres points", |
|
||||
max_length=255, |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,70 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import machines.models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0015_auto_20160707_0105")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Extension", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
primary_key=True, |
|
||||
verbose_name="ID", |
|
||||
serialize=False, |
|
||||
auto_created=True, |
|
||||
), |
|
||||
), |
|
||||
("name", models.CharField(max_length=255)), |
|
||||
], |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField( |
|
||||
unique=True, |
|
||||
max_length=255, |
|
||||
help_text="Obligatoire et unique, doit se terminer en .rez et ne pas comporter d'autres points", |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="machinetype", |
|
||||
name="extension", |
|
||||
field=models.ForeignKey( |
|
||||
null=True, |
|
||||
blank=True, |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
to="machines.Extension", |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,45 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0016_auto_20160708_1633")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="machinetype", |
|
||||
name="extension", |
|
||||
field=models.ForeignKey( |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
default=1, |
|
||||
to="machines.Extension", |
|
||||
), |
|
||||
preserve_default=False, |
|
||||
) |
|
||||
] |
|
||||
@ -1,43 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0017_auto_20160708_1645")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField( |
|
||||
help_text="Obligatoire et unique, doit se terminer en .rez et ne pas comporter d'autres points", |
|
||||
unique=True, |
|
||||
max_length=255, |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0018_auto_20160708_1813")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="machine", |
|
||||
field=models.ForeignKey(to="machines.Machine", on_delete=models.CASCADE), |
|
||||
) |
|
||||
] |
|
||||
@ -1,46 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0019_auto_20160718_1141")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RemoveField(model_name="machine", name="type"), |
|
||||
migrations.AddField( |
|
||||
model_name="interface", |
|
||||
name="type", |
|
||||
field=models.ForeignKey( |
|
||||
to="machines.MachineType", |
|
||||
default=1, |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0020_auto_20160718_1849")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField(unique=True, max_length=255), |
|
||||
) |
|
||||
] |
|
||||
@ -1,43 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0021_auto_20161006_1943")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField( |
|
||||
help_text="Obligatoire et unique, doit se terminer par exemple en .rez et ne pas comporter d'autres points", |
|
||||
unique=True, |
|
||||
max_length=255, |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,45 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0022_auto_20161011_1829")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="iplist", |
|
||||
name="ip_type", |
|
||||
field=models.ForeignKey( |
|
||||
to="machines.MachineType", |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
default=1, |
|
||||
), |
|
||||
preserve_default=False, |
|
||||
) |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0023_iplist_ip_type")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="machinetype", |
|
||||
name="need_infra", |
|
||||
field=models.BooleanField(default=False), |
|
||||
) |
|
||||
] |
|
||||
@ -1,77 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0024_machinetype_need_infra")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="IpType", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
verbose_name="ID", |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
auto_created=True, |
|
||||
), |
|
||||
), |
|
||||
("type", models.CharField(max_length=255)), |
|
||||
("need_infra", models.BooleanField(default=False)), |
|
||||
( |
|
||||
"extension", |
|
||||
models.ForeignKey( |
|
||||
to="machines.Extension", |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
), |
|
||||
migrations.RemoveField(model_name="machinetype", name="extension"), |
|
||||
migrations.RemoveField(model_name="machinetype", name="need_infra"), |
|
||||
migrations.AlterField( |
|
||||
model_name="iplist", |
|
||||
name="ip_type", |
|
||||
field=models.ForeignKey( |
|
||||
to="machines.IpType", on_delete=django.db.models.deletion.PROTECT |
|
||||
), |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="machinetype", |
|
||||
name="ip_type", |
|
||||
field=models.ForeignKey( |
|
||||
to="machines.IpType", |
|
||||
null=True, |
|
||||
blank=True, |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,43 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0025_auto_20161023_0038")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="interface", |
|
||||
name="dns", |
|
||||
field=models.CharField( |
|
||||
unique=True, |
|
||||
max_length=255, |
|
||||
help_text="Obligatoire et unique, ne doit pas comporter de points", |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,57 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0026_auto_20161026_1348")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Alias", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
auto_created=True, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"alias", |
|
||||
models.CharField( |
|
||||
max_length=255, |
|
||||
help_text="Obligatoire et unique, ne doit pas comporter de points", |
|
||||
unique=True, |
|
||||
), |
|
||||
), |
|
||||
("interface_parent", models.ForeignKey(to="machines.Interface", on_delete=models.CASCADE)), |
|
||||
], |
|
||||
) |
|
||||
] |
|
||||
@ -1,41 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0027_alias")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="iptype", |
|
||||
name="domaine_ip", |
|
||||
field=models.GenericIPAddressField( |
|
||||
blank=True, unique=True, null=True, protocol="IPv4" |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,47 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.core.validators |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0028_iptype_domaine_ip")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="iptype", |
|
||||
name="domaine_range", |
|
||||
field=models.IntegerField( |
|
||||
null=True, |
|
||||
validators=[ |
|
||||
django.core.validators.MinValueValidator(8), |
|
||||
django.core.validators.MaxValueValidator(32), |
|
||||
], |
|
||||
blank=True, |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,56 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0029_iptype_domaine_range")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="alias", |
|
||||
name="extension", |
|
||||
field=models.ForeignKey( |
|
||||
to="machines.Extension", |
|
||||
default=1, |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
preserve_default=False, |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="alias", |
|
||||
name="alias", |
|
||||
field=models.CharField( |
|
||||
max_length=255, |
|
||||
help_text="Obligatoire et unique, ne doit pas comporter de points", |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterUniqueTogether( |
|
||||
name="alias", unique_together=set([("alias", "extension")]) |
|
||||
), |
|
||||
] |
|
||||
@ -1,107 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
import django.core.validators |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0030_auto_20161118_1730")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Mx", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
verbose_name="ID", |
|
||||
serialize=False, |
|
||||
), |
|
||||
), |
|
||||
("priority", models.IntegerField(unique=True)), |
|
||||
( |
|
||||
"name", |
|
||||
models.OneToOneField( |
|
||||
on_delete=django.db.models.deletion.PROTECT, to="machines.Alias" |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"zone", |
|
||||
models.ForeignKey( |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
to="machines.Extension", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="Ns", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
verbose_name="ID", |
|
||||
serialize=False, |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"interface", |
|
||||
models.OneToOneField( |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
to="machines.Interface", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"zone", |
|
||||
models.ForeignKey( |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
to="machines.Extension", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="iptype", |
|
||||
name="domaine_ip", |
|
||||
field=models.GenericIPAddressField(protocol="IPv4"), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="iptype", |
|
||||
name="domaine_range", |
|
||||
field=models.IntegerField( |
|
||||
validators=[ |
|
||||
django.core.validators.MinValueValidator(8), |
|
||||
django.core.validators.MaxValueValidator(32), |
|
||||
] |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,50 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0031_auto_20161119_1709")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="extension", |
|
||||
name="origin", |
|
||||
field=models.OneToOneField( |
|
||||
null=True, |
|
||||
to="machines.IpList", |
|
||||
blank=True, |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="extension", |
|
||||
name="name", |
|
||||
field=models.CharField(max_length=255, unique=True), |
|
||||
), |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0032_auto_20161119_1850")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="extension", |
|
||||
name="need_infra", |
|
||||
field=models.BooleanField(default=False), |
|
||||
) |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0033_extension_need_infra")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="iplist", |
|
||||
name="need_infra", |
|
||||
field=models.BooleanField(default=False), |
|
||||
) |
|
||||
] |
|
||||
@ -1,33 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0034_iplist_need_infra")] |
|
||||
|
|
||||
operations = [migrations.RenameModel("Alias", "Domain")] |
|
||||
@ -1,43 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0035_auto_20161224_1201")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RenameField(model_name="domain", old_name="alias", new_name="name"), |
|
||||
migrations.AlterField( |
|
||||
model_name="domain", |
|
||||
name="interface_parent", |
|
||||
field=models.ForeignKey(to="machines.Interface", null=True, blank=True, on_delete=models.CASCADE), |
|
||||
), |
|
||||
migrations.AlterUniqueTogether( |
|
||||
name="domain", unique_together=set([("name", "extension")]) |
|
||||
), |
|
||||
] |
|
||||
@ -1,45 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0036_auto_20161224_1204")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="domain", |
|
||||
name="cname", |
|
||||
field=models.OneToOneField( |
|
||||
related_name="related_domain", |
|
||||
null=True, |
|
||||
to="machines.Domain", |
|
||||
blank=True, |
|
||||
on_delete=models.CASCADE |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,45 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0037_domain_cname")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="domain", |
|
||||
name="cname", |
|
||||
field=models.ForeignKey( |
|
||||
null=True, |
|
||||
to="machines.Domain", |
|
||||
related_name="related_domain", |
|
||||
blank=True, |
|
||||
on_delete=models.CASCADE, |
|
||||
), |
|
||||
) |
|
||||
] |
|
||||
@ -1,39 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0038_auto_20161224_1721")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="domain", |
|
||||
name="interface_parent", |
|
||||
field=models.OneToOneField(blank=True, null=True, to="machines.Interface", on_delete=models.CASCADE), |
|
||||
) |
|
||||
] |
|
||||
@ -1,33 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0039_auto_20161224_1732")] |
|
||||
|
|
||||
operations = [migrations.RemoveField(model_name="interface", name="dns")] |
|
||||
@ -1,33 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0040_remove_interface_dns")] |
|
||||
|
|
||||
operations = [migrations.RemoveField(model_name="ns", name="interface")] |
|
||||
@ -1,45 +0,0 @@ |
|||||
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il |
|
||||
# se veut agnostique au réseau considéré, de manière à être installable en |
|
||||
# quelques clics. |
|
||||
# |
|
||||
# Copyright © 2017 Gabriel Détraz |
|
||||
# Copyright © 2017 Lara 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. |
|
||||
|
|
||||
# -*- coding: utf-8 -*- |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0041_remove_ns_interface")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AddField( |
|
||||
model_name="ns", |
|
||||
name="ns", |
|
||||
field=models.OneToOneField( |
|
||||
to="machines.Domain", |
|
||||
default=1, |
|
||||
on_delete=django.db.models.deletion.PROTECT, |
|
||||
), |
|
||||
preserve_default=False, |
|
||||
) |
|
||||
] |
|
||||
@ -1,22 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-07-21 01:50 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0042_ns_ns")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.RemoveField(model_name="iplist", name="need_infra"), |
|
||||
migrations.AlterField( |
|
||||
model_name="iplist", |
|
||||
name="ip_type", |
|
||||
field=models.ForeignKey( |
|
||||
on_delete=django.db.models.deletion.CASCADE, to="machines.IpType" |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,70 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-08-08 00:33 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0043_auto_20170721_0350")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name="Service", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"service_type", |
|
||||
models.CharField(blank=True, max_length=255, unique=True), |
|
||||
), |
|
||||
("time_regen", models.DurationField()), |
|
||||
], |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name="Service_link", |
|
||||
fields=[ |
|
||||
( |
|
||||
"id", |
|
||||
models.AutoField( |
|
||||
auto_created=True, |
|
||||
primary_key=True, |
|
||||
serialize=False, |
|
||||
verbose_name="ID", |
|
||||
), |
|
||||
), |
|
||||
("last_regen", models.DateTimeField()), |
|
||||
("asked_regen", models.BooleanField()), |
|
||||
( |
|
||||
"server", |
|
||||
models.ForeignKey( |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
to="machines.Interface", |
|
||||
), |
|
||||
), |
|
||||
( |
|
||||
"service", |
|
||||
models.ForeignKey( |
|
||||
on_delete=django.db.models.deletion.CASCADE, |
|
||||
to="machines.Service", |
|
||||
), |
|
||||
), |
|
||||
], |
|
||||
), |
|
||||
migrations.AddField( |
|
||||
model_name="service", |
|
||||
name="servers", |
|
||||
field=models.ManyToManyField( |
|
||||
through="machines.Service_link", to="machines.Interface" |
|
||||
), |
|
||||
), |
|
||||
] |
|
||||
@ -1,23 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2017-08-08 01:48 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [("machines", "0044_auto_20170808_0233")] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name="service_link", |
|
||||
name="asked_regen", |
|
||||
field=models.BooleanField(default=False), |
|
||||
), |
|
||||
migrations.AlterField( |
|
||||
model_name="service_link", |
|
||||
name="last_regen", |
|
||||
field=models.DateTimeField(auto_now_add=True), |
|
||||
), |
|
||||
] |
|
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue