diff --git a/cotisations/migrations/0001_initial.py b/cotisations/migrations/0001_initial.py deleted file mode 100644 index d2249c76..00000000 --- a/cotisations/migrations/0001_initial.py +++ /dev/null @@ -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 - ), - ), - ] diff --git a/cotisations/migrations/0001_model_creation.py b/cotisations/migrations/0001_model_creation.py index fcd4e769..40d1f771 100644 --- a/cotisations/migrations/0001_model_creation.py +++ b/cotisations/migrations/0001_model_creation.py @@ -14,425 +14,7 @@ import cotisations.payment_methods.mixins class Migration(migrations.Migration): initial = True dependencies = [] - replaces = [ - ("users", "0001_initial"), - ("users", "0002_auto_20160630_2301"), - ("users", "0003_listrights_rights"), - ("users", "0004_auto_20160701_2312"), - ("users", "0005_auto_20160702_0006"), - ("users", "0006_ban"), - ("users", "0007_auto_20160702_2322"), - ("users", "0008_user_registered"), - ("users", "0009_user_room"), - ("users", "0010_auto_20160703_1226"), - ("users", "0011_auto_20160703_1227"), - ("users", "0012_auto_20160703_1230"), - ("users", "0013_auto_20160704_1547"), - ("users", "0014_auto_20160704_1548"), - ("users", "0015_whitelist"), - ("users", "0016_auto_20160706_1220"), - ("users", "0017_auto_20160707_0105"), - ("users", "0018_auto_20160707_0115"), - ("users", "0019_auto_20160708_1633"), - ("users", "0020_request"), - ("users", "0021_ldapuser"), - ("users", "0022_ldapuser_sambasid"), - ("users", "0023_auto_20160724_1908"), - ("users", "0024_remove_ldapuser_mac_list"), - ("users", "0025_listshell"), - ("users", "0026_user_shell"), - ("users", "0027_auto_20160726_0216"), - ("users", "0028_auto_20160726_0227"), - ("users", "0029_auto_20160726_0229"), - ("users", "0030_auto_20160726_0357"), - ("users", "0031_auto_20160726_0359"), - ("users", "0032_auto_20160727_2122"), - ("users", "0033_remove_ldapuser_loginshell"), - ("users", "0034_auto_20161018_0037"), - ("users", "0035_auto_20161018_0046"), - ("users", "0036_auto_20161022_2146"), - ("users", "0037_auto_20161028_1906"), - ("users", "0038_auto_20161031_0258"), - ("users", "0039_auto_20161119_0033"), - ("users", "0040_auto_20161119_1709"), - ("users", "0041_listright_details"), - ("users", "0042_auto_20161126_2028"), - ("users", "0043_auto_20161224_1156"), - ("users", "0043_ban_state"), - ("users", "0044_user_ssh_public_key"), - ("users", "0045_merge"), - ("users", "0046_auto_20170617_1433"), - ("users", "0047_auto_20170618_0156"), - ("users", "0048_auto_20170618_0210"), - ("users", "0049_auto_20170618_1424"), - ("users", "0050_serviceuser_comment"), - ("users", "0051_user_telephone"), - ("users", "0052_ldapuser_shadowexpire"), - ("users", "0053_auto_20170626_2105"), - ("users", "0054_auto_20170626_2219"), - ("users", "0055_auto_20171003_0556"), - ("users", "0056_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ("users", "0058_auto_20171025_0154"), - ("users", "0059_auto_20171025_1854"), - ("users", "0060_auto_20171120_0317"), - ("users", "0061_auto_20171230_2033"), - ("users", "0062_auto_20171231_0056"), - ("users", "0063_auto_20171231_0140"), - ("users", "0064_auto_20171231_0150"), - ("users", "0065_auto_20171231_2053"), - ("users", "0066_grouppermissions"), - ("users", "0067_serveurpermission"), - ("users", "0068_auto_20180107_2245"), - ("users", "0069_club_mailing"), - ("users", "0070_auto_20180324_1906"), - ("users", "0071_auto_20180415_1252"), - ("users", "0072_auto_20180426_2021"), - ("users", "0073_auto_20180629_1614"), - ("users", "0074_auto_20180810_2104"), - ("users", "0074_auto_20180814_1059"), - ("users", "0075_merge_20180815_2202"), - ("users", "0076_auto_20180818_1321"), - ("users", "0077_auto_20180824_1750"), - ("users", "0078_auto_20181011_1405"), - ("users", "0079_auto_20181228_2039"), - ("users", "0080_auto_20190108_1726"), - ("users", "0081_auto_20190317_0302"), - ("users", "0082_auto_20190908_1338"), - ("users", "0083_user_shortcuts_enabled"), - ("users", "0084_auto_20191120_0159"), - ("users", "0085_user_email_state"), - ("users", "0086_user_email_change_date"), - ("users", "0087_request_email"), - ("users", "0088_auto_20200417_2312"), - ("users", "0089_auto_20200418_0112"), - ("users", "0090_auto_20200421_1825"), - ("users", "0091_auto_20200423_1256"), - ("users", "0092_auto_20200502_0057"), - ("users", "0093_user_profile_image"), - ("users", "0094_remove_user_profile_image"), - ("users", "0095_user_theme"), - ("users", "0096_auto_20210110_1811"), - ("cotisations", "0001_initial"), - ("cotisations", "0002_remove_facture_article"), - ("cotisations", "0003_auto_20160702_1448"), - ("cotisations", "0004_auto_20160702_1528"), - ("cotisations", "0005_auto_20160702_1532"), - ("cotisations", "0006_auto_20160702_1534"), - ("cotisations", "0007_auto_20160702_1543"), - ("cotisations", "0008_auto_20160702_1614"), - ("cotisations", "0009_remove_cotisation_user"), - ("cotisations", "0010_auto_20160702_1840"), - ("cotisations", "0011_auto_20160702_1911"), - ("cotisations", "0012_auto_20160704_0118"), - ("cotisations", "0013_auto_20160711_2240"), - ("cotisations", "0014_auto_20160712_0245"), - ("cotisations", "0015_auto_20160714_2142"), - ("cotisations", "0016_auto_20160715_0110"), - ("cotisations", "0017_auto_20170718_2329"), - ("cotisations", "0018_paiement_type_paiement"), - ("cotisations", "0019_auto_20170819_0055"), - ("cotisations", "0020_auto_20170819_0057"), - ("cotisations", "0021_auto_20170819_0104"), - ("cotisations", "0022_auto_20170824_0128"), - ("cotisations", "0023_auto_20170902_1303"), - ("cotisations", "0024_auto_20171015_2033"), - ("cotisations", "0025_article_type_user"), - ("cotisations", "0026_auto_20171028_0126"), - ("cotisations", "0027_auto_20171029_1156"), - ("cotisations", "0028_auto_20171231_0007"), - ("cotisations", "0029_auto_20180414_2056"), - ("cotisations", "0030_custom_payment"), - ("cotisations", "0031_comnpaypayment_production"), - ("cotisations", "0032_custom_invoice"), - ("cotisations", "0033_auto_20180818_1319"), - ("cotisations", "0034_auto_20180831_1532"), - ("cotisations", "0035_notepayment"), - ("cotisations", "0036_custominvoice_remark"), - ("cotisations", "0037_costestimate"), - ("cotisations", "0038_auto_20181231_1657"), - ("cotisations", "0039_freepayment"), - ("cotisations", "0040_auto_20191002_2335"), - ("cotisations", "0041_auto_20191103_2131"), - ("cotisations", "0042_auto_20191120_0159"), - ("cotisations", "0043_separation_membership_connection_p1"), - ("cotisations", "0044_separation_membership_connection_p2"), - ("cotisations", "0045_separation_membership_connection_p3"), - ("cotisations", "0046_article_need_membership"), - ("cotisations", "0047_article_need_membership_init"), - ("cotisations", "0048_auto_20201017_0018"), - ("cotisations", "0049_auto_20201102_2305"), - ("cotisations", "0050_auto_20201102_2342"), - ("cotisations", "0051_auto_20201228_1636"), - ("machines", "0001_initial"), - ("machines", "0002_auto_20160703_1444"), - ("machines", "0003_auto_20160703_1450"), - ("machines", "0004_auto_20160703_1451"), - ("machines", "0005_auto_20160703_1523"), - ("machines", "0006_auto_20160703_1813"), - ("machines", "0007_auto_20160703_1816"), - ("machines", "0008_remove_interface_ipv6"), - ("machines", "0009_auto_20160703_2358"), - ("machines", "0010_auto_20160704_0104"), - ("machines", "0011_auto_20160704_0105"), - ("machines", "0012_auto_20160704_0118"), - ("machines", "0013_auto_20160705_1014"), - ("machines", "0014_auto_20160706_1220"), - ("machines", "0015_auto_20160707_0105"), - ("machines", "0016_auto_20160708_1633"), - ("machines", "0017_auto_20160708_1645"), - ("machines", "0018_auto_20160708_1813"), - ("machines", "0019_auto_20160718_1141"), - ("machines", "0020_auto_20160718_1849"), - ("machines", "0021_auto_20161006_1943"), - ("machines", "0022_auto_20161011_1829"), - ("machines", "0023_iplist_ip_type"), - ("machines", "0024_machinetype_need_infra"), - ("machines", "0025_auto_20161023_0038"), - ("machines", "0026_auto_20161026_1348"), - ("machines", "0027_alias"), - ("machines", "0028_iptype_domaine_ip"), - ("machines", "0029_iptype_domaine_range"), - ("machines", "0030_auto_20161118_1730"), - ("machines", "0031_auto_20161119_1709"), - ("machines", "0032_auto_20161119_1850"), - ("machines", "0033_extension_need_infra"), - ("machines", "0034_iplist_need_infra"), - ("machines", "0035_auto_20161224_1201"), - ("machines", "0036_auto_20161224_1204"), - ("machines", "0037_domain_cname"), - ("machines", "0038_auto_20161224_1721"), - ("machines", "0039_auto_20161224_1732"), - ("machines", "0040_remove_interface_dns"), - ("machines", "0041_remove_ns_interface"), - ("machines", "0042_ns_ns"), - ("machines", "0043_auto_20170721_0350"), - ("machines", "0044_auto_20170808_0233"), - ("machines", "0045_auto_20170808_0348"), - ("machines", "0046_auto_20170808_1423"), - ("machines", "0047_auto_20170809_0606"), - ("machines", "0048_auto_20170823_2315"), - ("machines", "0049_vlan"), - ("machines", "0050_auto_20170826_0022"), - ("machines", "0051_iptype_vlan"), - ("machines", "0052_auto_20170828_2322"), - ("machines", "0053_text"), - ("machines", "0054_text_zone"), - ("machines", "0055_nas"), - ("machines", "0056_nas_port_access_mode"), - ("machines", "0057_nas_autocapture_mac"), - ("machines", "0058_auto_20171002_0350"), - ("machines", "0059_iptype_prefix_v6"), - ("machines", "0060_iptype_ouverture_ports"), - ("machines", "0061_auto_20171015_2033"), - ("machines", "0062_extension_origin_v6"), - ("machines", "0063_auto_20171020_0040"), - ("machines", "0064_auto_20171115_0253"), - ("machines", "0065_auto_20171115_1514"), - ("machines", "0066_srv"), - ("machines", "0067_auto_20171116_0152"), - ("machines", "0068_auto_20171116_0252"), - ("machines", "0069_auto_20171116_0822"), - ("machines", "0070_auto_20171231_1947"), - ("machines", "0071_auto_20171231_2100"), - ("machines", "0072_auto_20180108_1822"), - ("machines", "0073_auto_20180128_2203"), - ("machines", "0074_auto_20180129_0352"), - ("machines", "0075_auto_20180130_0052"), - ("machines", "0076_auto_20180130_1623"), - ("machines", "0077_auto_20180409_2243"), - ("machines", "0078_auto_20180415_1252"), - ("machines", "0079_auto_20180416_0107"), - ("machines", "0080_auto_20180502_2334"), - ("machines", "0081_auto_20180521_1413"), - ("machines", "0082_auto_20180525_2209"), - ("machines", "0083_remove_duplicate_rights"), - ("machines", "0084_dname"), - ("machines", "0085_sshfingerprint"), - ("machines", "0086_role"), - ("machines", "0087_dnssec"), - ("machines", "0088_iptype_prefix_v6_length"), - ("machines", "0089_auto_20180805_1148"), - ("machines", "0090_auto_20180805_1459"), - ("machines", "0091_auto_20180806_2310"), - ("machines", "0092_auto_20180807_0926"), - ("machines", "0093_auto_20180807_1115"), - ("machines", "0094_auto_20180815_1918"), - ("machines", "0095_auto_20180919_2225"), - ("machines", "0096_auto_20181013_1417"), - ("machines", "0097_extension_dnssec"), - ("machines", "0098_auto_20190102_1745"), - ("machines", "0099_role_recursive_dns"), - ("machines", "0100_auto_20190102_1753"), - ("machines", "0101_auto_20190108_1623"), - ("machines", "0102_auto_20190303_1611"), - ("machines", "0103_auto_20191002_2222"), - ("machines", "0104_auto_20191002_2231"), - ("machines", "0105_dname_ttl"), - ("machines", "0106_auto_20191120_0159"), - ("machines", "0107_fix_lowercase_domain"), - ("machines", "0108_ipv6list_active"), - ("preferences", "0001_initial"), - ("preferences", "0002_auto_20170625_1923"), - ("preferences", "0003_optionaluser_solde_negatif"), - ("preferences", "0004_assooption_services"), - ("preferences", "0005_auto_20170824_0139"), - ("preferences", "0006_auto_20170824_0143"), - ("preferences", "0007_auto_20170824_2056"), - ("preferences", "0008_auto_20170824_2122"), - ("preferences", "0009_assooption_utilisateur_asso"), - ("preferences", "0010_auto_20170825_0459"), - ("preferences", "0011_auto_20170825_2307"), - ("preferences", "0012_generaloption_req_expire_hrs"), - ("preferences", "0013_generaloption_site_name"), - ("preferences", "0014_generaloption_email_from"), - ("preferences", "0015_optionaltopologie_radius_general_policy"), - ("preferences", "0016_auto_20170902_1520"), - ("preferences", "0017_mailmessageoption"), - ("preferences", "0018_optionaltopologie_mac_autocapture"), - ("preferences", "0019_remove_optionaltopologie_mac_autocapture"), - ("preferences", "0020_optionalmachine_ipv6"), - ("preferences", "0021_auto_20171015_1741"), - ("preferences", "0022_auto_20171015_1758"), - ("preferences", "0023_auto_20171015_2033"), - ("preferences", "0024_optionaluser_all_can_create"), - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0025_generaloption_general_message"), - ("preferences", "0026_auto_20171216_0401"), - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0028_assooption_description"), - ("preferences", "0028_auto_20180111_1129"), - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0029_auto_20180111_1134"), - ("preferences", "0029_auto_20180318_0213"), - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0030_auto_20180111_2346"), - ("preferences", "0030_merge_20180320_1419"), - ("preferences", "0031_auto_20180323_0218"), - ("preferences", "0031_optionaluser_self_adhesion"), - ("preferences", "0032_optionaluser_min_online_payment"), - ("preferences", "0032_optionaluser_shell_default"), - ("preferences", "0033_accueiloption"), - ("preferences", "0033_generaloption_gtu_sum_up"), - ("preferences", "0034_auto_20180114_2025"), - ("preferences", "0034_auto_20180416_1120"), - ("preferences", "0035_auto_20180114_2132"), - ("preferences", "0035_optionaluser_allow_self_subscription"), - ("preferences", "0036_auto_20180114_2141"), - ("preferences", "0037_auto_20180114_2156"), - ("preferences", "0038_auto_20180114_2209"), - ("preferences", "0039_auto_20180115_0003"), - ("preferences", "0040_auto_20180129_1745"), - ("preferences", "0041_merge_20180130_0052"), - ("preferences", "0042_auto_20180222_1743"), - ("preferences", "0043_optionalmachine_create_machine"), - ("preferences", "0044_remove_payment_pass"), - ("preferences", "0045_remove_unused_payment_fields"), - ("preferences", "0046_optionaluser_mail_extension"), - ("preferences", "0047_mailcontact"), - ("preferences", "0048_auto_20180811_1515"), - ("preferences", "0049_optionaluser_self_change_shell"), - ("preferences", "0050_auto_20180818_1329"), - ("preferences", "0051_auto_20180919_2225"), - ("preferences", "0052_optionaluser_delete_notyetactive"), - ("preferences", "0053_optionaluser_self_change_room"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ("preferences", "0056_2_radiusoption"), - ("preferences", "0056_3_radiusoption"), - ("preferences", "0056_4_radiusoption"), - ("preferences", "0057_optionaluser_all_users_active"), - ("preferences", "0058_auto_20190108_1650"), - ("preferences", "0059_auto_20190120_1739"), - ("preferences", "0060_auto_20190712_1821"), - ("preferences", "0061_optionaluser_allow_archived_connexion"), - ("preferences", "0062_auto_20190910_1909"), - ("preferences", "0063_mandate"), - ("preferences", "0064_auto_20191008_1335"), - ("preferences", "0065_auto_20191010_1227"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ("preferences", "0067_auto_20191120_0159"), - ("preferences", "0068_optionaluser_allow_set_password_during_user_creation"), - ("preferences", "0069_optionaluser_disable_emailnotyetconfirmed"), - ("preferences", "0070_auto_20200419_0225"), - ("preferences", "0071_optionaluser_self_change_pseudo"), - ("topologie", "0001_initial"), - ("topologie", "0002_auto_20160703_1118"), - ("topologie", "0003_room"), - ("topologie", "0004_auto_20160703_1122"), - ("topologie", "0005_auto_20160703_1123"), - ("topologie", "0006_auto_20160703_1129"), - ("topologie", "0007_auto_20160703_1148"), - ("topologie", "0008_port_room"), - ("topologie", "0009_auto_20160703_1200"), - ("topologie", "0010_auto_20160704_2148"), - ("topologie", "0011_auto_20160704_2153"), - ("topologie", "0012_port_machine_interface"), - ("topologie", "0013_port_related"), - ("topologie", "0014_auto_20160706_1238"), - ("topologie", "0015_auto_20160706_1452"), - ("topologie", "0016_auto_20160706_1531"), - ("topologie", "0017_auto_20160718_1141"), - ("topologie", "0018_room_details"), - ("topologie", "0019_auto_20161026_1348"), - ("topologie", "0020_auto_20161119_0033"), - ("topologie", "0021_port_radius"), - ("topologie", "0022_auto_20161211_1622"), - ("topologie", "0023_auto_20170817_1654"), - ("topologie", "0023_auto_20170826_1530"), - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ("topologie", "0025_merge_20170902_1242"), - ("topologie", "0026_auto_20170902_1245"), - ("topologie", "0027_auto_20170905_1442"), - ("topologie", "0028_auto_20170913_1503"), - ("topologie", "0029_auto_20171002_0334"), - ("topologie", "0030_auto_20171004_0235"), - ("topologie", "0031_auto_20171015_2033"), - ("topologie", "0032_auto_20171026_0338"), - ("topologie", "0033_auto_20171231_1743"), - ("topologie", "0034_borne"), - ("topologie", "0035_auto_20180324_0023"), - ("topologie", "0036_transferborne"), - ("topologie", "0037_auto_20180325_0127"), - ("topologie", "0038_transfersw"), - ("topologie", "0039_port_new_switch"), - ("topologie", "0040_transferports"), - ("topologie", "0041_transferportsw"), - ("topologie", "0042_transferswitch"), - ("topologie", "0043_renamenewswitch"), - ("topologie", "0044_auto_20180326_0002"), - ("topologie", "0045_auto_20180326_0123"), - ("topologie", "0046_auto_20180326_0129"), - ("topologie", "0047_ap_machine"), - ("topologie", "0048_ap_machine"), - ("topologie", "0049_switchs_machine"), - ("topologie", "0050_port_new_switch"), - ("topologie", "0051_switchs_machine"), - ("topologie", "0052_transferports"), - ("topologie", "0053_finalsw"), - ("topologie", "0054_auto_20180326_1742"), - ("topologie", "0055_auto_20180329_0431"), - ("topologie", "0056_building_switchbay"), - ("topologie", "0057_auto_20180408_0316"), - ("topologie", "0058_remove_switch_location"), - ("topologie", "0059_auto_20180415_2249"), - ("topologie", "0060_server"), - ("topologie", "0061_portprofile"), - ("topologie", "0062_auto_20180815_1918"), - ("topologie", "0063_auto_20180919_2225"), - ("topologie", "0064_switch_automatic_provision"), - ("topologie", "0065_auto_20180927_1836"), - ("topologie", "0066_modelswitch_commercial_name"), - ("topologie", "0067_auto_20181230_1819"), - ("topologie", "0068_auto_20190102_1758"), - ("topologie", "0069_auto_20190108_1439"), - ("topologie", "0070_auto_20190218_1743"), - ("topologie", "0071_auto_20190218_1936"), - ("topologie", "0072_auto_20190720_2318"), - ("topologie", "0073_auto_20191120_0159"), - ("topologie", "0074_auto_20200419_1640"), - ] + operations = [ migrations.CreateModel( name="BaseInvoice", diff --git a/cotisations/migrations/0002_foreign_keys.py b/cotisations/migrations/0002_foreign_keys.py index 73353baf..4503e71f 100644 --- a/cotisations/migrations/0002_foreign_keys.py +++ b/cotisations/migrations/0002_foreign_keys.py @@ -13,425 +13,7 @@ class Migration(migrations.Migration): migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cotisations', '0001_model_creation'), ] - replaces = [ - ("users", "0001_initial"), - ("users", "0002_auto_20160630_2301"), - ("users", "0003_listrights_rights"), - ("users", "0004_auto_20160701_2312"), - ("users", "0005_auto_20160702_0006"), - ("users", "0006_ban"), - ("users", "0007_auto_20160702_2322"), - ("users", "0008_user_registered"), - ("users", "0009_user_room"), - ("users", "0010_auto_20160703_1226"), - ("users", "0011_auto_20160703_1227"), - ("users", "0012_auto_20160703_1230"), - ("users", "0013_auto_20160704_1547"), - ("users", "0014_auto_20160704_1548"), - ("users", "0015_whitelist"), - ("users", "0016_auto_20160706_1220"), - ("users", "0017_auto_20160707_0105"), - ("users", "0018_auto_20160707_0115"), - ("users", "0019_auto_20160708_1633"), - ("users", "0020_request"), - ("users", "0021_ldapuser"), - ("users", "0022_ldapuser_sambasid"), - ("users", "0023_auto_20160724_1908"), - ("users", "0024_remove_ldapuser_mac_list"), - ("users", "0025_listshell"), - ("users", "0026_user_shell"), - ("users", "0027_auto_20160726_0216"), - ("users", "0028_auto_20160726_0227"), - ("users", "0029_auto_20160726_0229"), - ("users", "0030_auto_20160726_0357"), - ("users", "0031_auto_20160726_0359"), - ("users", "0032_auto_20160727_2122"), - ("users", "0033_remove_ldapuser_loginshell"), - ("users", "0034_auto_20161018_0037"), - ("users", "0035_auto_20161018_0046"), - ("users", "0036_auto_20161022_2146"), - ("users", "0037_auto_20161028_1906"), - ("users", "0038_auto_20161031_0258"), - ("users", "0039_auto_20161119_0033"), - ("users", "0040_auto_20161119_1709"), - ("users", "0041_listright_details"), - ("users", "0042_auto_20161126_2028"), - ("users", "0043_auto_20161224_1156"), - ("users", "0043_ban_state"), - ("users", "0044_user_ssh_public_key"), - ("users", "0045_merge"), - ("users", "0046_auto_20170617_1433"), - ("users", "0047_auto_20170618_0156"), - ("users", "0048_auto_20170618_0210"), - ("users", "0049_auto_20170618_1424"), - ("users", "0050_serviceuser_comment"), - ("users", "0051_user_telephone"), - ("users", "0052_ldapuser_shadowexpire"), - ("users", "0053_auto_20170626_2105"), - ("users", "0054_auto_20170626_2219"), - ("users", "0055_auto_20171003_0556"), - ("users", "0056_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ("users", "0058_auto_20171025_0154"), - ("users", "0059_auto_20171025_1854"), - ("users", "0060_auto_20171120_0317"), - ("users", "0061_auto_20171230_2033"), - ("users", "0062_auto_20171231_0056"), - ("users", "0063_auto_20171231_0140"), - ("users", "0064_auto_20171231_0150"), - ("users", "0065_auto_20171231_2053"), - ("users", "0066_grouppermissions"), - ("users", "0067_serveurpermission"), - ("users", "0068_auto_20180107_2245"), - ("users", "0069_club_mailing"), - ("users", "0070_auto_20180324_1906"), - ("users", "0071_auto_20180415_1252"), - ("users", "0072_auto_20180426_2021"), - ("users", "0073_auto_20180629_1614"), - ("users", "0074_auto_20180810_2104"), - ("users", "0074_auto_20180814_1059"), - ("users", "0075_merge_20180815_2202"), - ("users", "0076_auto_20180818_1321"), - ("users", "0077_auto_20180824_1750"), - ("users", "0078_auto_20181011_1405"), - ("users", "0079_auto_20181228_2039"), - ("users", "0080_auto_20190108_1726"), - ("users", "0081_auto_20190317_0302"), - ("users", "0082_auto_20190908_1338"), - ("users", "0083_user_shortcuts_enabled"), - ("users", "0084_auto_20191120_0159"), - ("users", "0085_user_email_state"), - ("users", "0086_user_email_change_date"), - ("users", "0087_request_email"), - ("users", "0088_auto_20200417_2312"), - ("users", "0089_auto_20200418_0112"), - ("users", "0090_auto_20200421_1825"), - ("users", "0091_auto_20200423_1256"), - ("users", "0092_auto_20200502_0057"), - ("users", "0093_user_profile_image"), - ("users", "0094_remove_user_profile_image"), - ("users", "0095_user_theme"), - ("users", "0096_auto_20210110_1811"), - ("cotisations", "0001_initial"), - ("cotisations", "0002_remove_facture_article"), - ("cotisations", "0003_auto_20160702_1448"), - ("cotisations", "0004_auto_20160702_1528"), - ("cotisations", "0005_auto_20160702_1532"), - ("cotisations", "0006_auto_20160702_1534"), - ("cotisations", "0007_auto_20160702_1543"), - ("cotisations", "0008_auto_20160702_1614"), - ("cotisations", "0009_remove_cotisation_user"), - ("cotisations", "0010_auto_20160702_1840"), - ("cotisations", "0011_auto_20160702_1911"), - ("cotisations", "0012_auto_20160704_0118"), - ("cotisations", "0013_auto_20160711_2240"), - ("cotisations", "0014_auto_20160712_0245"), - ("cotisations", "0015_auto_20160714_2142"), - ("cotisations", "0016_auto_20160715_0110"), - ("cotisations", "0017_auto_20170718_2329"), - ("cotisations", "0018_paiement_type_paiement"), - ("cotisations", "0019_auto_20170819_0055"), - ("cotisations", "0020_auto_20170819_0057"), - ("cotisations", "0021_auto_20170819_0104"), - ("cotisations", "0022_auto_20170824_0128"), - ("cotisations", "0023_auto_20170902_1303"), - ("cotisations", "0024_auto_20171015_2033"), - ("cotisations", "0025_article_type_user"), - ("cotisations", "0026_auto_20171028_0126"), - ("cotisations", "0027_auto_20171029_1156"), - ("cotisations", "0028_auto_20171231_0007"), - ("cotisations", "0029_auto_20180414_2056"), - ("cotisations", "0030_custom_payment"), - ("cotisations", "0031_comnpaypayment_production"), - ("cotisations", "0032_custom_invoice"), - ("cotisations", "0033_auto_20180818_1319"), - ("cotisations", "0034_auto_20180831_1532"), - ("cotisations", "0035_notepayment"), - ("cotisations", "0036_custominvoice_remark"), - ("cotisations", "0037_costestimate"), - ("cotisations", "0038_auto_20181231_1657"), - ("cotisations", "0039_freepayment"), - ("cotisations", "0040_auto_20191002_2335"), - ("cotisations", "0041_auto_20191103_2131"), - ("cotisations", "0042_auto_20191120_0159"), - ("cotisations", "0043_separation_membership_connection_p1"), - ("cotisations", "0044_separation_membership_connection_p2"), - ("cotisations", "0045_separation_membership_connection_p3"), - ("cotisations", "0046_article_need_membership"), - ("cotisations", "0047_article_need_membership_init"), - ("cotisations", "0048_auto_20201017_0018"), - ("cotisations", "0049_auto_20201102_2305"), - ("cotisations", "0050_auto_20201102_2342"), - ("cotisations", "0051_auto_20201228_1636"), - ("machines", "0001_initial"), - ("machines", "0002_auto_20160703_1444"), - ("machines", "0003_auto_20160703_1450"), - ("machines", "0004_auto_20160703_1451"), - ("machines", "0005_auto_20160703_1523"), - ("machines", "0006_auto_20160703_1813"), - ("machines", "0007_auto_20160703_1816"), - ("machines", "0008_remove_interface_ipv6"), - ("machines", "0009_auto_20160703_2358"), - ("machines", "0010_auto_20160704_0104"), - ("machines", "0011_auto_20160704_0105"), - ("machines", "0012_auto_20160704_0118"), - ("machines", "0013_auto_20160705_1014"), - ("machines", "0014_auto_20160706_1220"), - ("machines", "0015_auto_20160707_0105"), - ("machines", "0016_auto_20160708_1633"), - ("machines", "0017_auto_20160708_1645"), - ("machines", "0018_auto_20160708_1813"), - ("machines", "0019_auto_20160718_1141"), - ("machines", "0020_auto_20160718_1849"), - ("machines", "0021_auto_20161006_1943"), - ("machines", "0022_auto_20161011_1829"), - ("machines", "0023_iplist_ip_type"), - ("machines", "0024_machinetype_need_infra"), - ("machines", "0025_auto_20161023_0038"), - ("machines", "0026_auto_20161026_1348"), - ("machines", "0027_alias"), - ("machines", "0028_iptype_domaine_ip"), - ("machines", "0029_iptype_domaine_range"), - ("machines", "0030_auto_20161118_1730"), - ("machines", "0031_auto_20161119_1709"), - ("machines", "0032_auto_20161119_1850"), - ("machines", "0033_extension_need_infra"), - ("machines", "0034_iplist_need_infra"), - ("machines", "0035_auto_20161224_1201"), - ("machines", "0036_auto_20161224_1204"), - ("machines", "0037_domain_cname"), - ("machines", "0038_auto_20161224_1721"), - ("machines", "0039_auto_20161224_1732"), - ("machines", "0040_remove_interface_dns"), - ("machines", "0041_remove_ns_interface"), - ("machines", "0042_ns_ns"), - ("machines", "0043_auto_20170721_0350"), - ("machines", "0044_auto_20170808_0233"), - ("machines", "0045_auto_20170808_0348"), - ("machines", "0046_auto_20170808_1423"), - ("machines", "0047_auto_20170809_0606"), - ("machines", "0048_auto_20170823_2315"), - ("machines", "0049_vlan"), - ("machines", "0050_auto_20170826_0022"), - ("machines", "0051_iptype_vlan"), - ("machines", "0052_auto_20170828_2322"), - ("machines", "0053_text"), - ("machines", "0054_text_zone"), - ("machines", "0055_nas"), - ("machines", "0056_nas_port_access_mode"), - ("machines", "0057_nas_autocapture_mac"), - ("machines", "0058_auto_20171002_0350"), - ("machines", "0059_iptype_prefix_v6"), - ("machines", "0060_iptype_ouverture_ports"), - ("machines", "0061_auto_20171015_2033"), - ("machines", "0062_extension_origin_v6"), - ("machines", "0063_auto_20171020_0040"), - ("machines", "0064_auto_20171115_0253"), - ("machines", "0065_auto_20171115_1514"), - ("machines", "0066_srv"), - ("machines", "0067_auto_20171116_0152"), - ("machines", "0068_auto_20171116_0252"), - ("machines", "0069_auto_20171116_0822"), - ("machines", "0070_auto_20171231_1947"), - ("machines", "0071_auto_20171231_2100"), - ("machines", "0072_auto_20180108_1822"), - ("machines", "0073_auto_20180128_2203"), - ("machines", "0074_auto_20180129_0352"), - ("machines", "0075_auto_20180130_0052"), - ("machines", "0076_auto_20180130_1623"), - ("machines", "0077_auto_20180409_2243"), - ("machines", "0078_auto_20180415_1252"), - ("machines", "0079_auto_20180416_0107"), - ("machines", "0080_auto_20180502_2334"), - ("machines", "0081_auto_20180521_1413"), - ("machines", "0082_auto_20180525_2209"), - ("machines", "0083_remove_duplicate_rights"), - ("machines", "0084_dname"), - ("machines", "0085_sshfingerprint"), - ("machines", "0086_role"), - ("machines", "0087_dnssec"), - ("machines", "0088_iptype_prefix_v6_length"), - ("machines", "0089_auto_20180805_1148"), - ("machines", "0090_auto_20180805_1459"), - ("machines", "0091_auto_20180806_2310"), - ("machines", "0092_auto_20180807_0926"), - ("machines", "0093_auto_20180807_1115"), - ("machines", "0094_auto_20180815_1918"), - ("machines", "0095_auto_20180919_2225"), - ("machines", "0096_auto_20181013_1417"), - ("machines", "0097_extension_dnssec"), - ("machines", "0098_auto_20190102_1745"), - ("machines", "0099_role_recursive_dns"), - ("machines", "0100_auto_20190102_1753"), - ("machines", "0101_auto_20190108_1623"), - ("machines", "0102_auto_20190303_1611"), - ("machines", "0103_auto_20191002_2222"), - ("machines", "0104_auto_20191002_2231"), - ("machines", "0105_dname_ttl"), - ("machines", "0106_auto_20191120_0159"), - ("machines", "0107_fix_lowercase_domain"), - ("machines", "0108_ipv6list_active"), - ("preferences", "0001_initial"), - ("preferences", "0002_auto_20170625_1923"), - ("preferences", "0003_optionaluser_solde_negatif"), - ("preferences", "0004_assooption_services"), - ("preferences", "0005_auto_20170824_0139"), - ("preferences", "0006_auto_20170824_0143"), - ("preferences", "0007_auto_20170824_2056"), - ("preferences", "0008_auto_20170824_2122"), - ("preferences", "0009_assooption_utilisateur_asso"), - ("preferences", "0010_auto_20170825_0459"), - ("preferences", "0011_auto_20170825_2307"), - ("preferences", "0012_generaloption_req_expire_hrs"), - ("preferences", "0013_generaloption_site_name"), - ("preferences", "0014_generaloption_email_from"), - ("preferences", "0015_optionaltopologie_radius_general_policy"), - ("preferences", "0016_auto_20170902_1520"), - ("preferences", "0017_mailmessageoption"), - ("preferences", "0018_optionaltopologie_mac_autocapture"), - ("preferences", "0019_remove_optionaltopologie_mac_autocapture"), - ("preferences", "0020_optionalmachine_ipv6"), - ("preferences", "0021_auto_20171015_1741"), - ("preferences", "0022_auto_20171015_1758"), - ("preferences", "0023_auto_20171015_2033"), - ("preferences", "0024_optionaluser_all_can_create"), - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0025_generaloption_general_message"), - ("preferences", "0026_auto_20171216_0401"), - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0028_assooption_description"), - ("preferences", "0028_auto_20180111_1129"), - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0029_auto_20180111_1134"), - ("preferences", "0029_auto_20180318_0213"), - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0030_auto_20180111_2346"), - ("preferences", "0030_merge_20180320_1419"), - ("preferences", "0031_auto_20180323_0218"), - ("preferences", "0031_optionaluser_self_adhesion"), - ("preferences", "0032_optionaluser_min_online_payment"), - ("preferences", "0032_optionaluser_shell_default"), - ("preferences", "0033_accueiloption"), - ("preferences", "0033_generaloption_gtu_sum_up"), - ("preferences", "0034_auto_20180114_2025"), - ("preferences", "0034_auto_20180416_1120"), - ("preferences", "0035_auto_20180114_2132"), - ("preferences", "0035_optionaluser_allow_self_subscription"), - ("preferences", "0036_auto_20180114_2141"), - ("preferences", "0037_auto_20180114_2156"), - ("preferences", "0038_auto_20180114_2209"), - ("preferences", "0039_auto_20180115_0003"), - ("preferences", "0040_auto_20180129_1745"), - ("preferences", "0041_merge_20180130_0052"), - ("preferences", "0042_auto_20180222_1743"), - ("preferences", "0043_optionalmachine_create_machine"), - ("preferences", "0044_remove_payment_pass"), - ("preferences", "0045_remove_unused_payment_fields"), - ("preferences", "0046_optionaluser_mail_extension"), - ("preferences", "0047_mailcontact"), - ("preferences", "0048_auto_20180811_1515"), - ("preferences", "0049_optionaluser_self_change_shell"), - ("preferences", "0050_auto_20180818_1329"), - ("preferences", "0051_auto_20180919_2225"), - ("preferences", "0052_optionaluser_delete_notyetactive"), - ("preferences", "0053_optionaluser_self_change_room"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ("preferences", "0056_2_radiusoption"), - ("preferences", "0056_3_radiusoption"), - ("preferences", "0056_4_radiusoption"), - ("preferences", "0057_optionaluser_all_users_active"), - ("preferences", "0058_auto_20190108_1650"), - ("preferences", "0059_auto_20190120_1739"), - ("preferences", "0060_auto_20190712_1821"), - ("preferences", "0061_optionaluser_allow_archived_connexion"), - ("preferences", "0062_auto_20190910_1909"), - ("preferences", "0063_mandate"), - ("preferences", "0064_auto_20191008_1335"), - ("preferences", "0065_auto_20191010_1227"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ("preferences", "0067_auto_20191120_0159"), - ("preferences", "0068_optionaluser_allow_set_password_during_user_creation"), - ("preferences", "0069_optionaluser_disable_emailnotyetconfirmed"), - ("preferences", "0070_auto_20200419_0225"), - ("preferences", "0071_optionaluser_self_change_pseudo"), - ("topologie", "0001_initial"), - ("topologie", "0002_auto_20160703_1118"), - ("topologie", "0003_room"), - ("topologie", "0004_auto_20160703_1122"), - ("topologie", "0005_auto_20160703_1123"), - ("topologie", "0006_auto_20160703_1129"), - ("topologie", "0007_auto_20160703_1148"), - ("topologie", "0008_port_room"), - ("topologie", "0009_auto_20160703_1200"), - ("topologie", "0010_auto_20160704_2148"), - ("topologie", "0011_auto_20160704_2153"), - ("topologie", "0012_port_machine_interface"), - ("topologie", "0013_port_related"), - ("topologie", "0014_auto_20160706_1238"), - ("topologie", "0015_auto_20160706_1452"), - ("topologie", "0016_auto_20160706_1531"), - ("topologie", "0017_auto_20160718_1141"), - ("topologie", "0018_room_details"), - ("topologie", "0019_auto_20161026_1348"), - ("topologie", "0020_auto_20161119_0033"), - ("topologie", "0021_port_radius"), - ("topologie", "0022_auto_20161211_1622"), - ("topologie", "0023_auto_20170817_1654"), - ("topologie", "0023_auto_20170826_1530"), - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ("topologie", "0025_merge_20170902_1242"), - ("topologie", "0026_auto_20170902_1245"), - ("topologie", "0027_auto_20170905_1442"), - ("topologie", "0028_auto_20170913_1503"), - ("topologie", "0029_auto_20171002_0334"), - ("topologie", "0030_auto_20171004_0235"), - ("topologie", "0031_auto_20171015_2033"), - ("topologie", "0032_auto_20171026_0338"), - ("topologie", "0033_auto_20171231_1743"), - ("topologie", "0034_borne"), - ("topologie", "0035_auto_20180324_0023"), - ("topologie", "0036_transferborne"), - ("topologie", "0037_auto_20180325_0127"), - ("topologie", "0038_transfersw"), - ("topologie", "0039_port_new_switch"), - ("topologie", "0040_transferports"), - ("topologie", "0041_transferportsw"), - ("topologie", "0042_transferswitch"), - ("topologie", "0043_renamenewswitch"), - ("topologie", "0044_auto_20180326_0002"), - ("topologie", "0045_auto_20180326_0123"), - ("topologie", "0046_auto_20180326_0129"), - ("topologie", "0047_ap_machine"), - ("topologie", "0048_ap_machine"), - ("topologie", "0049_switchs_machine"), - ("topologie", "0050_port_new_switch"), - ("topologie", "0051_switchs_machine"), - ("topologie", "0052_transferports"), - ("topologie", "0053_finalsw"), - ("topologie", "0054_auto_20180326_1742"), - ("topologie", "0055_auto_20180329_0431"), - ("topologie", "0056_building_switchbay"), - ("topologie", "0057_auto_20180408_0316"), - ("topologie", "0058_remove_switch_location"), - ("topologie", "0059_auto_20180415_2249"), - ("topologie", "0060_server"), - ("topologie", "0061_portprofile"), - ("topologie", "0062_auto_20180815_1918"), - ("topologie", "0063_auto_20180919_2225"), - ("topologie", "0064_switch_automatic_provision"), - ("topologie", "0065_auto_20180927_1836"), - ("topologie", "0066_modelswitch_commercial_name"), - ("topologie", "0067_auto_20181230_1819"), - ("topologie", "0068_auto_20190102_1758"), - ("topologie", "0069_auto_20190108_1439"), - ("topologie", "0070_auto_20190218_1743"), - ("topologie", "0071_auto_20190218_1936"), - ("topologie", "0072_auto_20190720_2318"), - ("topologie", "0073_auto_20191120_0159"), - ("topologie", "0074_auto_20200419_1640"), - ] + operations = [ migrations.AddField( diff --git a/cotisations/migrations/0002_remove_facture_article.py b/cotisations/migrations/0002_remove_facture_article.py deleted file mode 100644 index 2f9f646c..00000000 --- a/cotisations/migrations/0002_remove_facture_article.py +++ /dev/null @@ -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")] diff --git a/cotisations/migrations/0003_auto_20160702_1448.py b/cotisations/migrations/0003_auto_20160702_1448.py deleted file mode 100644 index 63a84100..00000000 --- a/cotisations/migrations/0003_auto_20160702_1448.py +++ /dev/null @@ -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, - ), - ) - ] diff --git a/cotisations/migrations/0004_auto_20160702_1528.py b/cotisations/migrations/0004_auto_20160702_1528.py deleted file mode 100644 index df65ae98..00000000 --- a/cotisations/migrations/0004_auto_20160702_1528.py +++ /dev/null @@ -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), - ), - ] diff --git a/cotisations/migrations/0005_auto_20160702_1532.py b/cotisations/migrations/0005_auto_20160702_1532.py deleted file mode 100644 index 1cc613fe..00000000 --- a/cotisations/migrations/0005_auto_20160702_1532.py +++ /dev/null @@ -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), - ) - ] diff --git a/cotisations/migrations/0006_auto_20160702_1534.py b/cotisations/migrations/0006_auto_20160702_1534.py deleted file mode 100644 index 0fe78816..00000000 --- a/cotisations/migrations/0006_auto_20160702_1534.py +++ /dev/null @@ -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 - ), - ), - ] diff --git a/cotisations/migrations/0007_auto_20160702_1543.py b/cotisations/migrations/0007_auto_20160702_1543.py deleted file mode 100644 index 5becf23a..00000000 --- a/cotisations/migrations/0007_auto_20160702_1543.py +++ /dev/null @@ -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, - ), - ] diff --git a/cotisations/migrations/0008_auto_20160702_1614.py b/cotisations/migrations/0008_auto_20160702_1614.py deleted file mode 100644 index 774a93c1..00000000 --- a/cotisations/migrations/0008_auto_20160702_1614.py +++ /dev/null @@ -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 - ), - ), - ] diff --git a/cotisations/migrations/0009_remove_cotisation_user.py b/cotisations/migrations/0009_remove_cotisation_user.py deleted file mode 100644 index 3c20c442..00000000 --- a/cotisations/migrations/0009_remove_cotisation_user.py +++ /dev/null @@ -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")] diff --git a/cotisations/migrations/0010_auto_20160702_1840.py b/cotisations/migrations/0010_auto_20160702_1840.py deleted file mode 100644 index 1c6aeee1..00000000 --- a/cotisations/migrations/0010_auto_20160702_1840.py +++ /dev/null @@ -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 - ), - ), - ] diff --git a/cotisations/migrations/0011_auto_20160702_1911.py b/cotisations/migrations/0011_auto_20160702_1911.py deleted file mode 100644 index 8033bff7..00000000 --- a/cotisations/migrations/0011_auto_20160702_1911.py +++ /dev/null @@ -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() - ) - ] diff --git a/cotisations/migrations/0012_auto_20160704_0118.py b/cotisations/migrations/0012_auto_20160704_0118.py deleted file mode 100644 index 875a5e48..00000000 --- a/cotisations/migrations/0012_auto_20160704_0118.py +++ /dev/null @@ -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" - ), - ) - ] diff --git a/cotisations/migrations/0013_auto_20160711_2240.py b/cotisations/migrations/0013_auto_20160711_2240.py deleted file mode 100644 index 38899650..00000000 --- a/cotisations/migrations/0013_auto_20160711_2240.py +++ /dev/null @@ -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 - ), - ), - ] diff --git a/cotisations/migrations/0014_auto_20160712_0245.py b/cotisations/migrations/0014_auto_20160712_0245.py deleted file mode 100644 index 0121e241..00000000 --- a/cotisations/migrations/0014_auto_20160712_0245.py +++ /dev/null @@ -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, - ), - ] diff --git a/cotisations/migrations/0015_auto_20160714_2142.py b/cotisations/migrations/0015_auto_20160714_2142.py deleted file mode 100644 index e8a52839..00000000 --- a/cotisations/migrations/0015_auto_20160714_2142.py +++ /dev/null @@ -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)] - ), - ), - ] diff --git a/cotisations/migrations/0016_auto_20160715_0110.py b/cotisations/migrations/0016_auto_20160715_0110.py deleted file mode 100644 index ff3701a2..00000000 --- a/cotisations/migrations/0016_auto_20160715_0110.py +++ /dev/null @@ -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, - ), - ] diff --git a/cotisations/migrations/0017_auto_20170718_2329.py b/cotisations/migrations/0017_auto_20170718_2329.py deleted file mode 100644 index 585a3ea0..00000000 --- a/cotisations/migrations/0017_auto_20170718_2329.py +++ /dev/null @@ -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), - ), - ] diff --git a/cotisations/migrations/0018_paiement_type_paiement.py b/cotisations/migrations/0018_paiement_type_paiement.py deleted file mode 100644 index 8f23742f..00000000 --- a/cotisations/migrations/0018_paiement_type_paiement.py +++ /dev/null @@ -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, - ) - ] diff --git a/cotisations/migrations/0019_auto_20170819_0055.py b/cotisations/migrations/0019_auto_20170819_0055.py deleted file mode 100644 index 66a35e3a..00000000 --- a/cotisations/migrations/0019_auto_20170819_0055.py +++ /dev/null @@ -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 - ), - ) - ] diff --git a/cotisations/migrations/0020_auto_20170819_0057.py b/cotisations/migrations/0020_auto_20170819_0057.py deleted file mode 100644 index 9e52adaf..00000000 --- a/cotisations/migrations/0020_auto_20170819_0057.py +++ /dev/null @@ -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 - ), - ) - ] diff --git a/cotisations/migrations/0021_auto_20170819_0104.py b/cotisations/migrations/0021_auto_20170819_0104.py deleted file mode 100644 index f6b95642..00000000 --- a/cotisations/migrations/0021_auto_20170819_0104.py +++ /dev/null @@ -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), - ) - ] diff --git a/cotisations/migrations/0022_auto_20170824_0128.py b/cotisations/migrations/0022_auto_20170824_0128.py deleted file mode 100644 index be932b14..00000000 --- a/cotisations/migrations/0022_auto_20170824_0128.py +++ /dev/null @@ -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 - ), - ) - ] diff --git a/cotisations/migrations/0023_auto_20170902_1303.py b/cotisations/migrations/0023_auto_20170902_1303.py deleted file mode 100644 index f9a60526..00000000 --- a/cotisations/migrations/0023_auto_20170902_1303.py +++ /dev/null @@ -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), - ) - ] diff --git a/cotisations/migrations/0024_auto_20171015_2033.py b/cotisations/migrations/0024_auto_20171015_2033.py deleted file mode 100644 index c9900946..00000000 --- a/cotisations/migrations/0024_auto_20171015_2033.py +++ /dev/null @@ -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 - ), - ), - ] diff --git a/cotisations/migrations/0025_article_type_user.py b/cotisations/migrations/0025_article_type_user.py deleted file mode 100644 index 86e5567b..00000000 --- a/cotisations/migrations/0025_article_type_user.py +++ /dev/null @@ -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, - ), - ) - ] diff --git a/cotisations/migrations/0026_auto_20171028_0126.py b/cotisations/migrations/0026_auto_20171028_0126.py deleted file mode 100644 index d9a2e8db..00000000 --- a/cotisations/migrations/0026_auto_20171028_0126.py +++ /dev/null @@ -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"), - ] diff --git a/cotisations/migrations/0027_auto_20171029_1156.py b/cotisations/migrations/0027_auto_20171029_1156.py deleted file mode 100644 index fa66698b..00000000 --- a/cotisations/migrations/0027_auto_20171029_1156.py +++ /dev/null @@ -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) - ) - ] diff --git a/cotisations/migrations/0028_auto_20171231_0007.py b/cotisations/migrations/0028_auto_20171231_0007.py deleted file mode 100644 index b968072d..00000000 --- a/cotisations/migrations/0028_auto_20171231_0007.py +++ /dev/null @@ -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"), - ) - }, - ), - ] diff --git a/cotisations/migrations/0029_auto_20180414_2056.py b/cotisations/migrations/0029_auto_20180414_2056.py deleted file mode 100644 index cd13ecad..00000000 --- a/cotisations/migrations/0029_auto_20180414_2056.py +++ /dev/null @@ -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", - ), - ), - ] diff --git a/cotisations/migrations/0030_custom_payment.py b/cotisations/migrations/0030_custom_payment.py deleted file mode 100644 index 5a528434..00000000 --- a/cotisations/migrations/0030_custom_payment.py +++ /dev/null @@ -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"), - ] diff --git a/cotisations/migrations/0031_comnpaypayment_production.py b/cotisations/migrations/0031_comnpaypayment_production.py deleted file mode 100644 index 3f0f48ce..00000000 --- a/cotisations/migrations/0031_comnpaypayment_production.py +++ /dev/null @@ -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)", - ), - ) - ] diff --git a/cotisations/migrations/0032_custom_invoice.py b/cotisations/migrations/0032_custom_invoice.py deleted file mode 100644 index 38b28d23..00000000 --- a/cotisations/migrations/0032_custom_invoice.py +++ /dev/null @@ -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", - }, - ), - ] diff --git a/cotisations/migrations/0033_auto_20180818_1319.py b/cotisations/migrations/0033_auto_20180818_1319.py deleted file mode 100644 index edf8a77f..00000000 --- a/cotisations/migrations/0033_auto_20180818_1319.py +++ /dev/null @@ -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", - ), - ), - ] diff --git a/cotisations/migrations/0034_auto_20180831_1532.py b/cotisations/migrations/0034_auto_20180831_1532.py deleted file mode 100644 index aca2a3b6..00000000 --- a/cotisations/migrations/0034_auto_20180831_1532.py +++ /dev/null @@ -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"), - ) - ] diff --git a/cotisations/migrations/0035_notepayment.py b/cotisations/migrations/0035_notepayment.py deleted file mode 100644 index 5de8c93a..00000000 --- a/cotisations/migrations/0035_notepayment.py +++ /dev/null @@ -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), - ) - ] diff --git a/cotisations/migrations/0036_custominvoice_remark.py b/cotisations/migrations/0036_custominvoice_remark.py deleted file mode 100644 index 90b40308..00000000 --- a/cotisations/migrations/0036_custominvoice_remark.py +++ /dev/null @@ -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"), - ) - ] diff --git a/cotisations/migrations/0037_costestimate.py b/cotisations/migrations/0037_costestimate.py deleted file mode 100644 index 4cf72564..00000000 --- a/cotisations/migrations/0037_costestimate.py +++ /dev/null @@ -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",), - ) - ] diff --git a/cotisations/migrations/0038_auto_20181231_1657.py b/cotisations/migrations/0038_auto_20181231_1657.py deleted file mode 100644 index 9d6c67cd..00000000 --- a/cotisations/migrations/0038_auto_20181231_1657.py +++ /dev/null @@ -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"), - ), - ] diff --git a/cotisations/migrations/0039_freepayment.py b/cotisations/migrations/0039_freepayment.py deleted file mode 100644 index 9dc0a66f..00000000 --- a/cotisations/migrations/0039_freepayment.py +++ /dev/null @@ -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), - ) - ] diff --git a/cotisations/migrations/0040_auto_20191002_2335.py b/cotisations/migrations/0040_auto_20191002_2335.py deleted file mode 100644 index 78e5ef2c..00000000 --- a/cotisations/migrations/0040_auto_20191002_2335.py +++ /dev/null @@ -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)", - ), - ), - ] diff --git a/cotisations/migrations/0041_auto_20191103_2131.py b/cotisations/migrations/0041_auto_20191103_2131.py deleted file mode 100644 index 5ce1e767..00000000 --- a/cotisations/migrations/0041_auto_20191103_2131.py +++ /dev/null @@ -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", - ), - ), - ] diff --git a/cotisations/migrations/0042_auto_20191120_0159.py b/cotisations/migrations/0042_auto_20191120_0159.py deleted file mode 100644 index b9e5b356..00000000 --- a/cotisations/migrations/0042_auto_20191120_0159.py +++ /dev/null @@ -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'), - ), - ] diff --git a/cotisations/migrations/0043_separation_membership_connection_p1.py b/cotisations/migrations/0043_separation_membership_connection_p1.py deleted file mode 100644 index 7639dc5d..00000000 --- a/cotisations/migrations/0043_separation_membership_connection_p1.py +++ /dev/null @@ -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)'), - ), - ] diff --git a/cotisations/migrations/0044_separation_membership_connection_p2.py b/cotisations/migrations/0044_separation_membership_connection_p2.py deleted file mode 100644 index 87dea8e8..00000000 --- a/cotisations/migrations/0044_separation_membership_connection_p2.py +++ /dev/null @@ -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', -# ), - ] diff --git a/cotisations/migrations/0045_separation_membership_connection_p3.py b/cotisations/migrations/0045_separation_membership_connection_p3.py deleted file mode 100644 index db5432d0..00000000 --- a/cotisations/migrations/0045_separation_membership_connection_p3.py +++ /dev/null @@ -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', - ), - ] diff --git a/cotisations/migrations/0046_article_need_membership.py b/cotisations/migrations/0046_article_need_membership.py deleted file mode 100644 index 08fc6485..00000000 --- a/cotisations/migrations/0046_article_need_membership.py +++ /dev/null @@ -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'), - ), - ] diff --git a/cotisations/migrations/0047_article_need_membership_init.py b/cotisations/migrations/0047_article_need_membership_init.py deleted file mode 100644 index b268a10a..00000000 --- a/cotisations/migrations/0047_article_need_membership_init.py +++ /dev/null @@ -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), - ] diff --git a/cotisations/migrations/0048_auto_20201017_0018.py b/cotisations/migrations/0048_auto_20201017_0018.py deleted file mode 100644 index 31401174..00000000 --- a/cotisations/migrations/0048_auto_20201017_0018.py +++ /dev/null @@ -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), - ] diff --git a/cotisations/migrations/0049_auto_20201102_2305.py b/cotisations/migrations/0049_auto_20201102_2305.py deleted file mode 100644 index 22417800..00000000 --- a/cotisations/migrations/0049_auto_20201102_2305.py +++ /dev/null @@ -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)'), - ), - ] diff --git a/cotisations/migrations/0050_auto_20201102_2342.py b/cotisations/migrations/0050_auto_20201102_2342.py deleted file mode 100644 index 9ab58611..00000000 --- a/cotisations/migrations/0050_auto_20201102_2342.py +++ /dev/null @@ -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, - ), - ] diff --git a/cotisations/migrations/0051_auto_20201228_1636.py b/cotisations/migrations/0051_auto_20201228_1636.py deleted file mode 100644 index 572c9634..00000000 --- a/cotisations/migrations/0051_auto_20201228_1636.py +++ /dev/null @@ -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)", - ), - ), - ] diff --git a/machines/migrations/0001_initial.py b/machines/migrations/0001_initial.py deleted file mode 100644 index 6986a798..00000000 --- a/machines/migrations/0001_initial.py +++ /dev/null @@ -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 - ), - ), - ] diff --git a/machines/migrations/0001_model_creation.py b/machines/migrations/0001_model_creation.py index c8379981..1b9077b8 100644 --- a/machines/migrations/0001_model_creation.py +++ b/machines/migrations/0001_model_creation.py @@ -13,425 +13,7 @@ import datetime class Migration(migrations.Migration): initial = True dependencies = [] - replaces = [ - ("users", "0001_initial"), - ("users", "0002_auto_20160630_2301"), - ("users", "0003_listrights_rights"), - ("users", "0004_auto_20160701_2312"), - ("users", "0005_auto_20160702_0006"), - ("users", "0006_ban"), - ("users", "0007_auto_20160702_2322"), - ("users", "0008_user_registered"), - ("users", "0009_user_room"), - ("users", "0010_auto_20160703_1226"), - ("users", "0011_auto_20160703_1227"), - ("users", "0012_auto_20160703_1230"), - ("users", "0013_auto_20160704_1547"), - ("users", "0014_auto_20160704_1548"), - ("users", "0015_whitelist"), - ("users", "0016_auto_20160706_1220"), - ("users", "0017_auto_20160707_0105"), - ("users", "0018_auto_20160707_0115"), - ("users", "0019_auto_20160708_1633"), - ("users", "0020_request"), - ("users", "0021_ldapuser"), - ("users", "0022_ldapuser_sambasid"), - ("users", "0023_auto_20160724_1908"), - ("users", "0024_remove_ldapuser_mac_list"), - ("users", "0025_listshell"), - ("users", "0026_user_shell"), - ("users", "0027_auto_20160726_0216"), - ("users", "0028_auto_20160726_0227"), - ("users", "0029_auto_20160726_0229"), - ("users", "0030_auto_20160726_0357"), - ("users", "0031_auto_20160726_0359"), - ("users", "0032_auto_20160727_2122"), - ("users", "0033_remove_ldapuser_loginshell"), - ("users", "0034_auto_20161018_0037"), - ("users", "0035_auto_20161018_0046"), - ("users", "0036_auto_20161022_2146"), - ("users", "0037_auto_20161028_1906"), - ("users", "0038_auto_20161031_0258"), - ("users", "0039_auto_20161119_0033"), - ("users", "0040_auto_20161119_1709"), - ("users", "0041_listright_details"), - ("users", "0042_auto_20161126_2028"), - ("users", "0043_auto_20161224_1156"), - ("users", "0043_ban_state"), - ("users", "0044_user_ssh_public_key"), - ("users", "0045_merge"), - ("users", "0046_auto_20170617_1433"), - ("users", "0047_auto_20170618_0156"), - ("users", "0048_auto_20170618_0210"), - ("users", "0049_auto_20170618_1424"), - ("users", "0050_serviceuser_comment"), - ("users", "0051_user_telephone"), - ("users", "0052_ldapuser_shadowexpire"), - ("users", "0053_auto_20170626_2105"), - ("users", "0054_auto_20170626_2219"), - ("users", "0055_auto_20171003_0556"), - ("users", "0056_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ("users", "0058_auto_20171025_0154"), - ("users", "0059_auto_20171025_1854"), - ("users", "0060_auto_20171120_0317"), - ("users", "0061_auto_20171230_2033"), - ("users", "0062_auto_20171231_0056"), - ("users", "0063_auto_20171231_0140"), - ("users", "0064_auto_20171231_0150"), - ("users", "0065_auto_20171231_2053"), - ("users", "0066_grouppermissions"), - ("users", "0067_serveurpermission"), - ("users", "0068_auto_20180107_2245"), - ("users", "0069_club_mailing"), - ("users", "0070_auto_20180324_1906"), - ("users", "0071_auto_20180415_1252"), - ("users", "0072_auto_20180426_2021"), - ("users", "0073_auto_20180629_1614"), - ("users", "0074_auto_20180810_2104"), - ("users", "0074_auto_20180814_1059"), - ("users", "0075_merge_20180815_2202"), - ("users", "0076_auto_20180818_1321"), - ("users", "0077_auto_20180824_1750"), - ("users", "0078_auto_20181011_1405"), - ("users", "0079_auto_20181228_2039"), - ("users", "0080_auto_20190108_1726"), - ("users", "0081_auto_20190317_0302"), - ("users", "0082_auto_20190908_1338"), - ("users", "0083_user_shortcuts_enabled"), - ("users", "0084_auto_20191120_0159"), - ("users", "0085_user_email_state"), - ("users", "0086_user_email_change_date"), - ("users", "0087_request_email"), - ("users", "0088_auto_20200417_2312"), - ("users", "0089_auto_20200418_0112"), - ("users", "0090_auto_20200421_1825"), - ("users", "0091_auto_20200423_1256"), - ("users", "0092_auto_20200502_0057"), - ("users", "0093_user_profile_image"), - ("users", "0094_remove_user_profile_image"), - ("users", "0095_user_theme"), - ("users", "0096_auto_20210110_1811"), - ("cotisations", "0001_initial"), - ("cotisations", "0002_remove_facture_article"), - ("cotisations", "0003_auto_20160702_1448"), - ("cotisations", "0004_auto_20160702_1528"), - ("cotisations", "0005_auto_20160702_1532"), - ("cotisations", "0006_auto_20160702_1534"), - ("cotisations", "0007_auto_20160702_1543"), - ("cotisations", "0008_auto_20160702_1614"), - ("cotisations", "0009_remove_cotisation_user"), - ("cotisations", "0010_auto_20160702_1840"), - ("cotisations", "0011_auto_20160702_1911"), - ("cotisations", "0012_auto_20160704_0118"), - ("cotisations", "0013_auto_20160711_2240"), - ("cotisations", "0014_auto_20160712_0245"), - ("cotisations", "0015_auto_20160714_2142"), - ("cotisations", "0016_auto_20160715_0110"), - ("cotisations", "0017_auto_20170718_2329"), - ("cotisations", "0018_paiement_type_paiement"), - ("cotisations", "0019_auto_20170819_0055"), - ("cotisations", "0020_auto_20170819_0057"), - ("cotisations", "0021_auto_20170819_0104"), - ("cotisations", "0022_auto_20170824_0128"), - ("cotisations", "0023_auto_20170902_1303"), - ("cotisations", "0024_auto_20171015_2033"), - ("cotisations", "0025_article_type_user"), - ("cotisations", "0026_auto_20171028_0126"), - ("cotisations", "0027_auto_20171029_1156"), - ("cotisations", "0028_auto_20171231_0007"), - ("cotisations", "0029_auto_20180414_2056"), - ("cotisations", "0030_custom_payment"), - ("cotisations", "0031_comnpaypayment_production"), - ("cotisations", "0032_custom_invoice"), - ("cotisations", "0033_auto_20180818_1319"), - ("cotisations", "0034_auto_20180831_1532"), - ("cotisations", "0035_notepayment"), - ("cotisations", "0036_custominvoice_remark"), - ("cotisations", "0037_costestimate"), - ("cotisations", "0038_auto_20181231_1657"), - ("cotisations", "0039_freepayment"), - ("cotisations", "0040_auto_20191002_2335"), - ("cotisations", "0041_auto_20191103_2131"), - ("cotisations", "0042_auto_20191120_0159"), - ("cotisations", "0043_separation_membership_connection_p1"), - ("cotisations", "0044_separation_membership_connection_p2"), - ("cotisations", "0045_separation_membership_connection_p3"), - ("cotisations", "0046_article_need_membership"), - ("cotisations", "0047_article_need_membership_init"), - ("cotisations", "0048_auto_20201017_0018"), - ("cotisations", "0049_auto_20201102_2305"), - ("cotisations", "0050_auto_20201102_2342"), - ("cotisations", "0051_auto_20201228_1636"), - ("machines", "0001_initial"), - ("machines", "0002_auto_20160703_1444"), - ("machines", "0003_auto_20160703_1450"), - ("machines", "0004_auto_20160703_1451"), - ("machines", "0005_auto_20160703_1523"), - ("machines", "0006_auto_20160703_1813"), - ("machines", "0007_auto_20160703_1816"), - ("machines", "0008_remove_interface_ipv6"), - ("machines", "0009_auto_20160703_2358"), - ("machines", "0010_auto_20160704_0104"), - ("machines", "0011_auto_20160704_0105"), - ("machines", "0012_auto_20160704_0118"), - ("machines", "0013_auto_20160705_1014"), - ("machines", "0014_auto_20160706_1220"), - ("machines", "0015_auto_20160707_0105"), - ("machines", "0016_auto_20160708_1633"), - ("machines", "0017_auto_20160708_1645"), - ("machines", "0018_auto_20160708_1813"), - ("machines", "0019_auto_20160718_1141"), - ("machines", "0020_auto_20160718_1849"), - ("machines", "0021_auto_20161006_1943"), - ("machines", "0022_auto_20161011_1829"), - ("machines", "0023_iplist_ip_type"), - ("machines", "0024_machinetype_need_infra"), - ("machines", "0025_auto_20161023_0038"), - ("machines", "0026_auto_20161026_1348"), - ("machines", "0027_alias"), - ("machines", "0028_iptype_domaine_ip"), - ("machines", "0029_iptype_domaine_range"), - ("machines", "0030_auto_20161118_1730"), - ("machines", "0031_auto_20161119_1709"), - ("machines", "0032_auto_20161119_1850"), - ("machines", "0033_extension_need_infra"), - ("machines", "0034_iplist_need_infra"), - ("machines", "0035_auto_20161224_1201"), - ("machines", "0036_auto_20161224_1204"), - ("machines", "0037_domain_cname"), - ("machines", "0038_auto_20161224_1721"), - ("machines", "0039_auto_20161224_1732"), - ("machines", "0040_remove_interface_dns"), - ("machines", "0041_remove_ns_interface"), - ("machines", "0042_ns_ns"), - ("machines", "0043_auto_20170721_0350"), - ("machines", "0044_auto_20170808_0233"), - ("machines", "0045_auto_20170808_0348"), - ("machines", "0046_auto_20170808_1423"), - ("machines", "0047_auto_20170809_0606"), - ("machines", "0048_auto_20170823_2315"), - ("machines", "0049_vlan"), - ("machines", "0050_auto_20170826_0022"), - ("machines", "0051_iptype_vlan"), - ("machines", "0052_auto_20170828_2322"), - ("machines", "0053_text"), - ("machines", "0054_text_zone"), - ("machines", "0055_nas"), - ("machines", "0056_nas_port_access_mode"), - ("machines", "0057_nas_autocapture_mac"), - ("machines", "0058_auto_20171002_0350"), - ("machines", "0059_iptype_prefix_v6"), - ("machines", "0060_iptype_ouverture_ports"), - ("machines", "0061_auto_20171015_2033"), - ("machines", "0062_extension_origin_v6"), - ("machines", "0063_auto_20171020_0040"), - ("machines", "0064_auto_20171115_0253"), - ("machines", "0065_auto_20171115_1514"), - ("machines", "0066_srv"), - ("machines", "0067_auto_20171116_0152"), - ("machines", "0068_auto_20171116_0252"), - ("machines", "0069_auto_20171116_0822"), - ("machines", "0070_auto_20171231_1947"), - ("machines", "0071_auto_20171231_2100"), - ("machines", "0072_auto_20180108_1822"), - ("machines", "0073_auto_20180128_2203"), - ("machines", "0074_auto_20180129_0352"), - ("machines", "0075_auto_20180130_0052"), - ("machines", "0076_auto_20180130_1623"), - ("machines", "0077_auto_20180409_2243"), - ("machines", "0078_auto_20180415_1252"), - ("machines", "0079_auto_20180416_0107"), - ("machines", "0080_auto_20180502_2334"), - ("machines", "0081_auto_20180521_1413"), - ("machines", "0082_auto_20180525_2209"), - ("machines", "0083_remove_duplicate_rights"), - ("machines", "0084_dname"), - ("machines", "0085_sshfingerprint"), - ("machines", "0086_role"), - ("machines", "0087_dnssec"), - ("machines", "0088_iptype_prefix_v6_length"), - ("machines", "0089_auto_20180805_1148"), - ("machines", "0090_auto_20180805_1459"), - ("machines", "0091_auto_20180806_2310"), - ("machines", "0092_auto_20180807_0926"), - ("machines", "0093_auto_20180807_1115"), - ("machines", "0094_auto_20180815_1918"), - ("machines", "0095_auto_20180919_2225"), - ("machines", "0096_auto_20181013_1417"), - ("machines", "0097_extension_dnssec"), - ("machines", "0098_auto_20190102_1745"), - ("machines", "0099_role_recursive_dns"), - ("machines", "0100_auto_20190102_1753"), - ("machines", "0101_auto_20190108_1623"), - ("machines", "0102_auto_20190303_1611"), - ("machines", "0103_auto_20191002_2222"), - ("machines", "0104_auto_20191002_2231"), - ("machines", "0105_dname_ttl"), - ("machines", "0106_auto_20191120_0159"), - ("machines", "0107_fix_lowercase_domain"), - ("machines", "0108_ipv6list_active"), - ("preferences", "0001_initial"), - ("preferences", "0002_auto_20170625_1923"), - ("preferences", "0003_optionaluser_solde_negatif"), - ("preferences", "0004_assooption_services"), - ("preferences", "0005_auto_20170824_0139"), - ("preferences", "0006_auto_20170824_0143"), - ("preferences", "0007_auto_20170824_2056"), - ("preferences", "0008_auto_20170824_2122"), - ("preferences", "0009_assooption_utilisateur_asso"), - ("preferences", "0010_auto_20170825_0459"), - ("preferences", "0011_auto_20170825_2307"), - ("preferences", "0012_generaloption_req_expire_hrs"), - ("preferences", "0013_generaloption_site_name"), - ("preferences", "0014_generaloption_email_from"), - ("preferences", "0015_optionaltopologie_radius_general_policy"), - ("preferences", "0016_auto_20170902_1520"), - ("preferences", "0017_mailmessageoption"), - ("preferences", "0018_optionaltopologie_mac_autocapture"), - ("preferences", "0019_remove_optionaltopologie_mac_autocapture"), - ("preferences", "0020_optionalmachine_ipv6"), - ("preferences", "0021_auto_20171015_1741"), - ("preferences", "0022_auto_20171015_1758"), - ("preferences", "0023_auto_20171015_2033"), - ("preferences", "0024_optionaluser_all_can_create"), - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0025_generaloption_general_message"), - ("preferences", "0026_auto_20171216_0401"), - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0028_assooption_description"), - ("preferences", "0028_auto_20180111_1129"), - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0029_auto_20180111_1134"), - ("preferences", "0029_auto_20180318_0213"), - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0030_auto_20180111_2346"), - ("preferences", "0030_merge_20180320_1419"), - ("preferences", "0031_auto_20180323_0218"), - ("preferences", "0031_optionaluser_self_adhesion"), - ("preferences", "0032_optionaluser_min_online_payment"), - ("preferences", "0032_optionaluser_shell_default"), - ("preferences", "0033_accueiloption"), - ("preferences", "0033_generaloption_gtu_sum_up"), - ("preferences", "0034_auto_20180114_2025"), - ("preferences", "0034_auto_20180416_1120"), - ("preferences", "0035_auto_20180114_2132"), - ("preferences", "0035_optionaluser_allow_self_subscription"), - ("preferences", "0036_auto_20180114_2141"), - ("preferences", "0037_auto_20180114_2156"), - ("preferences", "0038_auto_20180114_2209"), - ("preferences", "0039_auto_20180115_0003"), - ("preferences", "0040_auto_20180129_1745"), - ("preferences", "0041_merge_20180130_0052"), - ("preferences", "0042_auto_20180222_1743"), - ("preferences", "0043_optionalmachine_create_machine"), - ("preferences", "0044_remove_payment_pass"), - ("preferences", "0045_remove_unused_payment_fields"), - ("preferences", "0046_optionaluser_mail_extension"), - ("preferences", "0047_mailcontact"), - ("preferences", "0048_auto_20180811_1515"), - ("preferences", "0049_optionaluser_self_change_shell"), - ("preferences", "0050_auto_20180818_1329"), - ("preferences", "0051_auto_20180919_2225"), - ("preferences", "0052_optionaluser_delete_notyetactive"), - ("preferences", "0053_optionaluser_self_change_room"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ("preferences", "0056_2_radiusoption"), - ("preferences", "0056_3_radiusoption"), - ("preferences", "0056_4_radiusoption"), - ("preferences", "0057_optionaluser_all_users_active"), - ("preferences", "0058_auto_20190108_1650"), - ("preferences", "0059_auto_20190120_1739"), - ("preferences", "0060_auto_20190712_1821"), - ("preferences", "0061_optionaluser_allow_archived_connexion"), - ("preferences", "0062_auto_20190910_1909"), - ("preferences", "0063_mandate"), - ("preferences", "0064_auto_20191008_1335"), - ("preferences", "0065_auto_20191010_1227"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ("preferences", "0067_auto_20191120_0159"), - ("preferences", "0068_optionaluser_allow_set_password_during_user_creation"), - ("preferences", "0069_optionaluser_disable_emailnotyetconfirmed"), - ("preferences", "0070_auto_20200419_0225"), - ("preferences", "0071_optionaluser_self_change_pseudo"), - ("topologie", "0001_initial"), - ("topologie", "0002_auto_20160703_1118"), - ("topologie", "0003_room"), - ("topologie", "0004_auto_20160703_1122"), - ("topologie", "0005_auto_20160703_1123"), - ("topologie", "0006_auto_20160703_1129"), - ("topologie", "0007_auto_20160703_1148"), - ("topologie", "0008_port_room"), - ("topologie", "0009_auto_20160703_1200"), - ("topologie", "0010_auto_20160704_2148"), - ("topologie", "0011_auto_20160704_2153"), - ("topologie", "0012_port_machine_interface"), - ("topologie", "0013_port_related"), - ("topologie", "0014_auto_20160706_1238"), - ("topologie", "0015_auto_20160706_1452"), - ("topologie", "0016_auto_20160706_1531"), - ("topologie", "0017_auto_20160718_1141"), - ("topologie", "0018_room_details"), - ("topologie", "0019_auto_20161026_1348"), - ("topologie", "0020_auto_20161119_0033"), - ("topologie", "0021_port_radius"), - ("topologie", "0022_auto_20161211_1622"), - ("topologie", "0023_auto_20170817_1654"), - ("topologie", "0023_auto_20170826_1530"), - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ("topologie", "0025_merge_20170902_1242"), - ("topologie", "0026_auto_20170902_1245"), - ("topologie", "0027_auto_20170905_1442"), - ("topologie", "0028_auto_20170913_1503"), - ("topologie", "0029_auto_20171002_0334"), - ("topologie", "0030_auto_20171004_0235"), - ("topologie", "0031_auto_20171015_2033"), - ("topologie", "0032_auto_20171026_0338"), - ("topologie", "0033_auto_20171231_1743"), - ("topologie", "0034_borne"), - ("topologie", "0035_auto_20180324_0023"), - ("topologie", "0036_transferborne"), - ("topologie", "0037_auto_20180325_0127"), - ("topologie", "0038_transfersw"), - ("topologie", "0039_port_new_switch"), - ("topologie", "0040_transferports"), - ("topologie", "0041_transferportsw"), - ("topologie", "0042_transferswitch"), - ("topologie", "0043_renamenewswitch"), - ("topologie", "0044_auto_20180326_0002"), - ("topologie", "0045_auto_20180326_0123"), - ("topologie", "0046_auto_20180326_0129"), - ("topologie", "0047_ap_machine"), - ("topologie", "0048_ap_machine"), - ("topologie", "0049_switchs_machine"), - ("topologie", "0050_port_new_switch"), - ("topologie", "0051_switchs_machine"), - ("topologie", "0052_transferports"), - ("topologie", "0053_finalsw"), - ("topologie", "0054_auto_20180326_1742"), - ("topologie", "0055_auto_20180329_0431"), - ("topologie", "0056_building_switchbay"), - ("topologie", "0057_auto_20180408_0316"), - ("topologie", "0058_remove_switch_location"), - ("topologie", "0059_auto_20180415_2249"), - ("topologie", "0060_server"), - ("topologie", "0061_portprofile"), - ("topologie", "0062_auto_20180815_1918"), - ("topologie", "0063_auto_20180919_2225"), - ("topologie", "0064_switch_automatic_provision"), - ("topologie", "0065_auto_20180927_1836"), - ("topologie", "0066_modelswitch_commercial_name"), - ("topologie", "0067_auto_20181230_1819"), - ("topologie", "0068_auto_20190102_1758"), - ("topologie", "0069_auto_20190108_1439"), - ("topologie", "0070_auto_20190218_1743"), - ("topologie", "0071_auto_20190218_1936"), - ("topologie", "0072_auto_20190720_2318"), - ("topologie", "0073_auto_20191120_0159"), - ("topologie", "0074_auto_20200419_1640"), - ] + operations = [ migrations.CreateModel( name="Machine", diff --git a/machines/migrations/0002_auto_20160703_1444.py b/machines/migrations/0002_auto_20160703_1444.py deleted file mode 100644 index 6dd2e4c2..00000000 --- a/machines/migrations/0002_auto_20160703_1444.py +++ /dev/null @@ -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 - ), - ), - ] diff --git a/machines/migrations/0002_foreign_keys.py b/machines/migrations/0002_foreign_keys.py index 3ace9b2e..35fb5f71 100644 --- a/machines/migrations/0002_foreign_keys.py +++ b/machines/migrations/0002_foreign_keys.py @@ -13,425 +13,7 @@ class Migration(migrations.Migration): migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('machines', '0001_model_creation'), ] - replaces = [ - ("users", "0001_initial"), - ("users", "0002_auto_20160630_2301"), - ("users", "0003_listrights_rights"), - ("users", "0004_auto_20160701_2312"), - ("users", "0005_auto_20160702_0006"), - ("users", "0006_ban"), - ("users", "0007_auto_20160702_2322"), - ("users", "0008_user_registered"), - ("users", "0009_user_room"), - ("users", "0010_auto_20160703_1226"), - ("users", "0011_auto_20160703_1227"), - ("users", "0012_auto_20160703_1230"), - ("users", "0013_auto_20160704_1547"), - ("users", "0014_auto_20160704_1548"), - ("users", "0015_whitelist"), - ("users", "0016_auto_20160706_1220"), - ("users", "0017_auto_20160707_0105"), - ("users", "0018_auto_20160707_0115"), - ("users", "0019_auto_20160708_1633"), - ("users", "0020_request"), - ("users", "0021_ldapuser"), - ("users", "0022_ldapuser_sambasid"), - ("users", "0023_auto_20160724_1908"), - ("users", "0024_remove_ldapuser_mac_list"), - ("users", "0025_listshell"), - ("users", "0026_user_shell"), - ("users", "0027_auto_20160726_0216"), - ("users", "0028_auto_20160726_0227"), - ("users", "0029_auto_20160726_0229"), - ("users", "0030_auto_20160726_0357"), - ("users", "0031_auto_20160726_0359"), - ("users", "0032_auto_20160727_2122"), - ("users", "0033_remove_ldapuser_loginshell"), - ("users", "0034_auto_20161018_0037"), - ("users", "0035_auto_20161018_0046"), - ("users", "0036_auto_20161022_2146"), - ("users", "0037_auto_20161028_1906"), - ("users", "0038_auto_20161031_0258"), - ("users", "0039_auto_20161119_0033"), - ("users", "0040_auto_20161119_1709"), - ("users", "0041_listright_details"), - ("users", "0042_auto_20161126_2028"), - ("users", "0043_auto_20161224_1156"), - ("users", "0043_ban_state"), - ("users", "0044_user_ssh_public_key"), - ("users", "0045_merge"), - ("users", "0046_auto_20170617_1433"), - ("users", "0047_auto_20170618_0156"), - ("users", "0048_auto_20170618_0210"), - ("users", "0049_auto_20170618_1424"), - ("users", "0050_serviceuser_comment"), - ("users", "0051_user_telephone"), - ("users", "0052_ldapuser_shadowexpire"), - ("users", "0053_auto_20170626_2105"), - ("users", "0054_auto_20170626_2219"), - ("users", "0055_auto_20171003_0556"), - ("users", "0056_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ("users", "0058_auto_20171025_0154"), - ("users", "0059_auto_20171025_1854"), - ("users", "0060_auto_20171120_0317"), - ("users", "0061_auto_20171230_2033"), - ("users", "0062_auto_20171231_0056"), - ("users", "0063_auto_20171231_0140"), - ("users", "0064_auto_20171231_0150"), - ("users", "0065_auto_20171231_2053"), - ("users", "0066_grouppermissions"), - ("users", "0067_serveurpermission"), - ("users", "0068_auto_20180107_2245"), - ("users", "0069_club_mailing"), - ("users", "0070_auto_20180324_1906"), - ("users", "0071_auto_20180415_1252"), - ("users", "0072_auto_20180426_2021"), - ("users", "0073_auto_20180629_1614"), - ("users", "0074_auto_20180810_2104"), - ("users", "0074_auto_20180814_1059"), - ("users", "0075_merge_20180815_2202"), - ("users", "0076_auto_20180818_1321"), - ("users", "0077_auto_20180824_1750"), - ("users", "0078_auto_20181011_1405"), - ("users", "0079_auto_20181228_2039"), - ("users", "0080_auto_20190108_1726"), - ("users", "0081_auto_20190317_0302"), - ("users", "0082_auto_20190908_1338"), - ("users", "0083_user_shortcuts_enabled"), - ("users", "0084_auto_20191120_0159"), - ("users", "0085_user_email_state"), - ("users", "0086_user_email_change_date"), - ("users", "0087_request_email"), - ("users", "0088_auto_20200417_2312"), - ("users", "0089_auto_20200418_0112"), - ("users", "0090_auto_20200421_1825"), - ("users", "0091_auto_20200423_1256"), - ("users", "0092_auto_20200502_0057"), - ("users", "0093_user_profile_image"), - ("users", "0094_remove_user_profile_image"), - ("users", "0095_user_theme"), - ("users", "0096_auto_20210110_1811"), - ("cotisations", "0001_initial"), - ("cotisations", "0002_remove_facture_article"), - ("cotisations", "0003_auto_20160702_1448"), - ("cotisations", "0004_auto_20160702_1528"), - ("cotisations", "0005_auto_20160702_1532"), - ("cotisations", "0006_auto_20160702_1534"), - ("cotisations", "0007_auto_20160702_1543"), - ("cotisations", "0008_auto_20160702_1614"), - ("cotisations", "0009_remove_cotisation_user"), - ("cotisations", "0010_auto_20160702_1840"), - ("cotisations", "0011_auto_20160702_1911"), - ("cotisations", "0012_auto_20160704_0118"), - ("cotisations", "0013_auto_20160711_2240"), - ("cotisations", "0014_auto_20160712_0245"), - ("cotisations", "0015_auto_20160714_2142"), - ("cotisations", "0016_auto_20160715_0110"), - ("cotisations", "0017_auto_20170718_2329"), - ("cotisations", "0018_paiement_type_paiement"), - ("cotisations", "0019_auto_20170819_0055"), - ("cotisations", "0020_auto_20170819_0057"), - ("cotisations", "0021_auto_20170819_0104"), - ("cotisations", "0022_auto_20170824_0128"), - ("cotisations", "0023_auto_20170902_1303"), - ("cotisations", "0024_auto_20171015_2033"), - ("cotisations", "0025_article_type_user"), - ("cotisations", "0026_auto_20171028_0126"), - ("cotisations", "0027_auto_20171029_1156"), - ("cotisations", "0028_auto_20171231_0007"), - ("cotisations", "0029_auto_20180414_2056"), - ("cotisations", "0030_custom_payment"), - ("cotisations", "0031_comnpaypayment_production"), - ("cotisations", "0032_custom_invoice"), - ("cotisations", "0033_auto_20180818_1319"), - ("cotisations", "0034_auto_20180831_1532"), - ("cotisations", "0035_notepayment"), - ("cotisations", "0036_custominvoice_remark"), - ("cotisations", "0037_costestimate"), - ("cotisations", "0038_auto_20181231_1657"), - ("cotisations", "0039_freepayment"), - ("cotisations", "0040_auto_20191002_2335"), - ("cotisations", "0041_auto_20191103_2131"), - ("cotisations", "0042_auto_20191120_0159"), - ("cotisations", "0043_separation_membership_connection_p1"), - ("cotisations", "0044_separation_membership_connection_p2"), - ("cotisations", "0045_separation_membership_connection_p3"), - ("cotisations", "0046_article_need_membership"), - ("cotisations", "0047_article_need_membership_init"), - ("cotisations", "0048_auto_20201017_0018"), - ("cotisations", "0049_auto_20201102_2305"), - ("cotisations", "0050_auto_20201102_2342"), - ("cotisations", "0051_auto_20201228_1636"), - ("machines", "0001_initial"), - ("machines", "0002_auto_20160703_1444"), - ("machines", "0003_auto_20160703_1450"), - ("machines", "0004_auto_20160703_1451"), - ("machines", "0005_auto_20160703_1523"), - ("machines", "0006_auto_20160703_1813"), - ("machines", "0007_auto_20160703_1816"), - ("machines", "0008_remove_interface_ipv6"), - ("machines", "0009_auto_20160703_2358"), - ("machines", "0010_auto_20160704_0104"), - ("machines", "0011_auto_20160704_0105"), - ("machines", "0012_auto_20160704_0118"), - ("machines", "0013_auto_20160705_1014"), - ("machines", "0014_auto_20160706_1220"), - ("machines", "0015_auto_20160707_0105"), - ("machines", "0016_auto_20160708_1633"), - ("machines", "0017_auto_20160708_1645"), - ("machines", "0018_auto_20160708_1813"), - ("machines", "0019_auto_20160718_1141"), - ("machines", "0020_auto_20160718_1849"), - ("machines", "0021_auto_20161006_1943"), - ("machines", "0022_auto_20161011_1829"), - ("machines", "0023_iplist_ip_type"), - ("machines", "0024_machinetype_need_infra"), - ("machines", "0025_auto_20161023_0038"), - ("machines", "0026_auto_20161026_1348"), - ("machines", "0027_alias"), - ("machines", "0028_iptype_domaine_ip"), - ("machines", "0029_iptype_domaine_range"), - ("machines", "0030_auto_20161118_1730"), - ("machines", "0031_auto_20161119_1709"), - ("machines", "0032_auto_20161119_1850"), - ("machines", "0033_extension_need_infra"), - ("machines", "0034_iplist_need_infra"), - ("machines", "0035_auto_20161224_1201"), - ("machines", "0036_auto_20161224_1204"), - ("machines", "0037_domain_cname"), - ("machines", "0038_auto_20161224_1721"), - ("machines", "0039_auto_20161224_1732"), - ("machines", "0040_remove_interface_dns"), - ("machines", "0041_remove_ns_interface"), - ("machines", "0042_ns_ns"), - ("machines", "0043_auto_20170721_0350"), - ("machines", "0044_auto_20170808_0233"), - ("machines", "0045_auto_20170808_0348"), - ("machines", "0046_auto_20170808_1423"), - ("machines", "0047_auto_20170809_0606"), - ("machines", "0048_auto_20170823_2315"), - ("machines", "0049_vlan"), - ("machines", "0050_auto_20170826_0022"), - ("machines", "0051_iptype_vlan"), - ("machines", "0052_auto_20170828_2322"), - ("machines", "0053_text"), - ("machines", "0054_text_zone"), - ("machines", "0055_nas"), - ("machines", "0056_nas_port_access_mode"), - ("machines", "0057_nas_autocapture_mac"), - ("machines", "0058_auto_20171002_0350"), - ("machines", "0059_iptype_prefix_v6"), - ("machines", "0060_iptype_ouverture_ports"), - ("machines", "0061_auto_20171015_2033"), - ("machines", "0062_extension_origin_v6"), - ("machines", "0063_auto_20171020_0040"), - ("machines", "0064_auto_20171115_0253"), - ("machines", "0065_auto_20171115_1514"), - ("machines", "0066_srv"), - ("machines", "0067_auto_20171116_0152"), - ("machines", "0068_auto_20171116_0252"), - ("machines", "0069_auto_20171116_0822"), - ("machines", "0070_auto_20171231_1947"), - ("machines", "0071_auto_20171231_2100"), - ("machines", "0072_auto_20180108_1822"), - ("machines", "0073_auto_20180128_2203"), - ("machines", "0074_auto_20180129_0352"), - ("machines", "0075_auto_20180130_0052"), - ("machines", "0076_auto_20180130_1623"), - ("machines", "0077_auto_20180409_2243"), - ("machines", "0078_auto_20180415_1252"), - ("machines", "0079_auto_20180416_0107"), - ("machines", "0080_auto_20180502_2334"), - ("machines", "0081_auto_20180521_1413"), - ("machines", "0082_auto_20180525_2209"), - ("machines", "0083_remove_duplicate_rights"), - ("machines", "0084_dname"), - ("machines", "0085_sshfingerprint"), - ("machines", "0086_role"), - ("machines", "0087_dnssec"), - ("machines", "0088_iptype_prefix_v6_length"), - ("machines", "0089_auto_20180805_1148"), - ("machines", "0090_auto_20180805_1459"), - ("machines", "0091_auto_20180806_2310"), - ("machines", "0092_auto_20180807_0926"), - ("machines", "0093_auto_20180807_1115"), - ("machines", "0094_auto_20180815_1918"), - ("machines", "0095_auto_20180919_2225"), - ("machines", "0096_auto_20181013_1417"), - ("machines", "0097_extension_dnssec"), - ("machines", "0098_auto_20190102_1745"), - ("machines", "0099_role_recursive_dns"), - ("machines", "0100_auto_20190102_1753"), - ("machines", "0101_auto_20190108_1623"), - ("machines", "0102_auto_20190303_1611"), - ("machines", "0103_auto_20191002_2222"), - ("machines", "0104_auto_20191002_2231"), - ("machines", "0105_dname_ttl"), - ("machines", "0106_auto_20191120_0159"), - ("machines", "0107_fix_lowercase_domain"), - ("machines", "0108_ipv6list_active"), - ("preferences", "0001_initial"), - ("preferences", "0002_auto_20170625_1923"), - ("preferences", "0003_optionaluser_solde_negatif"), - ("preferences", "0004_assooption_services"), - ("preferences", "0005_auto_20170824_0139"), - ("preferences", "0006_auto_20170824_0143"), - ("preferences", "0007_auto_20170824_2056"), - ("preferences", "0008_auto_20170824_2122"), - ("preferences", "0009_assooption_utilisateur_asso"), - ("preferences", "0010_auto_20170825_0459"), - ("preferences", "0011_auto_20170825_2307"), - ("preferences", "0012_generaloption_req_expire_hrs"), - ("preferences", "0013_generaloption_site_name"), - ("preferences", "0014_generaloption_email_from"), - ("preferences", "0015_optionaltopologie_radius_general_policy"), - ("preferences", "0016_auto_20170902_1520"), - ("preferences", "0017_mailmessageoption"), - ("preferences", "0018_optionaltopologie_mac_autocapture"), - ("preferences", "0019_remove_optionaltopologie_mac_autocapture"), - ("preferences", "0020_optionalmachine_ipv6"), - ("preferences", "0021_auto_20171015_1741"), - ("preferences", "0022_auto_20171015_1758"), - ("preferences", "0023_auto_20171015_2033"), - ("preferences", "0024_optionaluser_all_can_create"), - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0025_generaloption_general_message"), - ("preferences", "0026_auto_20171216_0401"), - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0028_assooption_description"), - ("preferences", "0028_auto_20180111_1129"), - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0029_auto_20180111_1134"), - ("preferences", "0029_auto_20180318_0213"), - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0030_auto_20180111_2346"), - ("preferences", "0030_merge_20180320_1419"), - ("preferences", "0031_auto_20180323_0218"), - ("preferences", "0031_optionaluser_self_adhesion"), - ("preferences", "0032_optionaluser_min_online_payment"), - ("preferences", "0032_optionaluser_shell_default"), - ("preferences", "0033_accueiloption"), - ("preferences", "0033_generaloption_gtu_sum_up"), - ("preferences", "0034_auto_20180114_2025"), - ("preferences", "0034_auto_20180416_1120"), - ("preferences", "0035_auto_20180114_2132"), - ("preferences", "0035_optionaluser_allow_self_subscription"), - ("preferences", "0036_auto_20180114_2141"), - ("preferences", "0037_auto_20180114_2156"), - ("preferences", "0038_auto_20180114_2209"), - ("preferences", "0039_auto_20180115_0003"), - ("preferences", "0040_auto_20180129_1745"), - ("preferences", "0041_merge_20180130_0052"), - ("preferences", "0042_auto_20180222_1743"), - ("preferences", "0043_optionalmachine_create_machine"), - ("preferences", "0044_remove_payment_pass"), - ("preferences", "0045_remove_unused_payment_fields"), - ("preferences", "0046_optionaluser_mail_extension"), - ("preferences", "0047_mailcontact"), - ("preferences", "0048_auto_20180811_1515"), - ("preferences", "0049_optionaluser_self_change_shell"), - ("preferences", "0050_auto_20180818_1329"), - ("preferences", "0051_auto_20180919_2225"), - ("preferences", "0052_optionaluser_delete_notyetactive"), - ("preferences", "0053_optionaluser_self_change_room"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ("preferences", "0056_2_radiusoption"), - ("preferences", "0056_3_radiusoption"), - ("preferences", "0056_4_radiusoption"), - ("preferences", "0057_optionaluser_all_users_active"), - ("preferences", "0058_auto_20190108_1650"), - ("preferences", "0059_auto_20190120_1739"), - ("preferences", "0060_auto_20190712_1821"), - ("preferences", "0061_optionaluser_allow_archived_connexion"), - ("preferences", "0062_auto_20190910_1909"), - ("preferences", "0063_mandate"), - ("preferences", "0064_auto_20191008_1335"), - ("preferences", "0065_auto_20191010_1227"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ("preferences", "0067_auto_20191120_0159"), - ("preferences", "0068_optionaluser_allow_set_password_during_user_creation"), - ("preferences", "0069_optionaluser_disable_emailnotyetconfirmed"), - ("preferences", "0070_auto_20200419_0225"), - ("preferences", "0071_optionaluser_self_change_pseudo"), - ("topologie", "0001_initial"), - ("topologie", "0002_auto_20160703_1118"), - ("topologie", "0003_room"), - ("topologie", "0004_auto_20160703_1122"), - ("topologie", "0005_auto_20160703_1123"), - ("topologie", "0006_auto_20160703_1129"), - ("topologie", "0007_auto_20160703_1148"), - ("topologie", "0008_port_room"), - ("topologie", "0009_auto_20160703_1200"), - ("topologie", "0010_auto_20160704_2148"), - ("topologie", "0011_auto_20160704_2153"), - ("topologie", "0012_port_machine_interface"), - ("topologie", "0013_port_related"), - ("topologie", "0014_auto_20160706_1238"), - ("topologie", "0015_auto_20160706_1452"), - ("topologie", "0016_auto_20160706_1531"), - ("topologie", "0017_auto_20160718_1141"), - ("topologie", "0018_room_details"), - ("topologie", "0019_auto_20161026_1348"), - ("topologie", "0020_auto_20161119_0033"), - ("topologie", "0021_port_radius"), - ("topologie", "0022_auto_20161211_1622"), - ("topologie", "0023_auto_20170817_1654"), - ("topologie", "0023_auto_20170826_1530"), - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ("topologie", "0025_merge_20170902_1242"), - ("topologie", "0026_auto_20170902_1245"), - ("topologie", "0027_auto_20170905_1442"), - ("topologie", "0028_auto_20170913_1503"), - ("topologie", "0029_auto_20171002_0334"), - ("topologie", "0030_auto_20171004_0235"), - ("topologie", "0031_auto_20171015_2033"), - ("topologie", "0032_auto_20171026_0338"), - ("topologie", "0033_auto_20171231_1743"), - ("topologie", "0034_borne"), - ("topologie", "0035_auto_20180324_0023"), - ("topologie", "0036_transferborne"), - ("topologie", "0037_auto_20180325_0127"), - ("topologie", "0038_transfersw"), - ("topologie", "0039_port_new_switch"), - ("topologie", "0040_transferports"), - ("topologie", "0041_transferportsw"), - ("topologie", "0042_transferswitch"), - ("topologie", "0043_renamenewswitch"), - ("topologie", "0044_auto_20180326_0002"), - ("topologie", "0045_auto_20180326_0123"), - ("topologie", "0046_auto_20180326_0129"), - ("topologie", "0047_ap_machine"), - ("topologie", "0048_ap_machine"), - ("topologie", "0049_switchs_machine"), - ("topologie", "0050_port_new_switch"), - ("topologie", "0051_switchs_machine"), - ("topologie", "0052_transferports"), - ("topologie", "0053_finalsw"), - ("topologie", "0054_auto_20180326_1742"), - ("topologie", "0055_auto_20180329_0431"), - ("topologie", "0056_building_switchbay"), - ("topologie", "0057_auto_20180408_0316"), - ("topologie", "0058_remove_switch_location"), - ("topologie", "0059_auto_20180415_2249"), - ("topologie", "0060_server"), - ("topologie", "0061_portprofile"), - ("topologie", "0062_auto_20180815_1918"), - ("topologie", "0063_auto_20180919_2225"), - ("topologie", "0064_switch_automatic_provision"), - ("topologie", "0065_auto_20180927_1836"), - ("topologie", "0066_modelswitch_commercial_name"), - ("topologie", "0067_auto_20181230_1819"), - ("topologie", "0068_auto_20190102_1758"), - ("topologie", "0069_auto_20190108_1439"), - ("topologie", "0070_auto_20190218_1743"), - ("topologie", "0071_auto_20190218_1936"), - ("topologie", "0072_auto_20190720_2318"), - ("topologie", "0073_auto_20191120_0159"), - ("topologie", "0074_auto_20200419_1640"), - ] + operations = [ migrations.AddField( diff --git a/machines/migrations/0003_auto_20160703_1450.py b/machines/migrations/0003_auto_20160703_1450.py deleted file mode 100644 index 71cc95d0..00000000 --- a/machines/migrations/0003_auto_20160703_1450.py +++ /dev/null @@ -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), - ) - ] diff --git a/machines/migrations/0004_auto_20160703_1451.py b/machines/migrations/0004_auto_20160703_1451.py deleted file mode 100644 index c171851c..00000000 --- a/machines/migrations/0004_auto_20160703_1451.py +++ /dev/null @@ -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), - ) - ] diff --git a/machines/migrations/0005_auto_20160703_1523.py b/machines/migrations/0005_auto_20160703_1523.py deleted file mode 100644 index 5dcec84c..00000000 --- a/machines/migrations/0005_auto_20160703_1523.py +++ /dev/null @@ -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" - ), - ), - ] diff --git a/machines/migrations/0006_auto_20160703_1813.py b/machines/migrations/0006_auto_20160703_1813.py deleted file mode 100644 index 7269bb5d..00000000 --- a/machines/migrations/0006_auto_20160703_1813.py +++ /dev/null @@ -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), - ), - ] diff --git a/machines/migrations/0007_auto_20160703_1816.py b/machines/migrations/0007_auto_20160703_1816.py deleted file mode 100644 index 797f7984..00000000 --- a/machines/migrations/0007_auto_20160703_1816.py +++ /dev/null @@ -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"), - ) - ] diff --git a/machines/migrations/0008_remove_interface_ipv6.py b/machines/migrations/0008_remove_interface_ipv6.py deleted file mode 100644 index 6683b265..00000000 --- a/machines/migrations/0008_remove_interface_ipv6.py +++ /dev/null @@ -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")] diff --git a/machines/migrations/0009_auto_20160703_2358.py b/machines/migrations/0009_auto_20160703_2358.py deleted file mode 100644 index d9e17d8b..00000000 --- a/machines/migrations/0009_auto_20160703_2358.py +++ /dev/null @@ -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 - ), - ) - ] diff --git a/machines/migrations/0010_auto_20160704_0104.py b/machines/migrations/0010_auto_20160704_0104.py deleted file mode 100644 index 4485c065..00000000 --- a/machines/migrations/0010_auto_20160704_0104.py +++ /dev/null @@ -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, - ), - ) - ] diff --git a/machines/migrations/0011_auto_20160704_0105.py b/machines/migrations/0011_auto_20160704_0105.py deleted file mode 100644 index 4ec76da8..00000000 --- a/machines/migrations/0011_auto_20160704_0105.py +++ /dev/null @@ -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 - ), - ) - ] diff --git a/machines/migrations/0012_auto_20160704_0118.py b/machines/migrations/0012_auto_20160704_0118.py deleted file mode 100644 index 1b206380..00000000 --- a/machines/migrations/0012_auto_20160704_0118.py +++ /dev/null @@ -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 - ), - ) - ] diff --git a/machines/migrations/0013_auto_20160705_1014.py b/machines/migrations/0013_auto_20160705_1014.py deleted file mode 100644 index 39c430b3..00000000 --- a/machines/migrations/0013_auto_20160705_1014.py +++ /dev/null @@ -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", - ), - ), - ] diff --git a/machines/migrations/0014_auto_20160706_1220.py b/machines/migrations/0014_auto_20160706_1220.py deleted file mode 100644 index cce8f9ae..00000000 --- a/machines/migrations/0014_auto_20160706_1220.py +++ /dev/null @@ -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", - ), - ) - ] diff --git a/machines/migrations/0015_auto_20160707_0105.py b/machines/migrations/0015_auto_20160707_0105.py deleted file mode 100644 index 1a0d0f6a..00000000 --- a/machines/migrations/0015_auto_20160707_0105.py +++ /dev/null @@ -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, - ), - ) - ] diff --git a/machines/migrations/0016_auto_20160708_1633.py b/machines/migrations/0016_auto_20160708_1633.py deleted file mode 100644 index c95bc7d7..00000000 --- a/machines/migrations/0016_auto_20160708_1633.py +++ /dev/null @@ -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", - ), - ), - ] diff --git a/machines/migrations/0017_auto_20160708_1645.py b/machines/migrations/0017_auto_20160708_1645.py deleted file mode 100644 index 2e31332a..00000000 --- a/machines/migrations/0017_auto_20160708_1645.py +++ /dev/null @@ -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, - ) - ] diff --git a/machines/migrations/0018_auto_20160708_1813.py b/machines/migrations/0018_auto_20160708_1813.py deleted file mode 100644 index e0964e09..00000000 --- a/machines/migrations/0018_auto_20160708_1813.py +++ /dev/null @@ -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, - ), - ) - ] diff --git a/machines/migrations/0019_auto_20160718_1141.py b/machines/migrations/0019_auto_20160718_1141.py deleted file mode 100644 index 671ca2b0..00000000 --- a/machines/migrations/0019_auto_20160718_1141.py +++ /dev/null @@ -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), - ) - ] diff --git a/machines/migrations/0020_auto_20160718_1849.py b/machines/migrations/0020_auto_20160718_1849.py deleted file mode 100644 index c8d372ac..00000000 --- a/machines/migrations/0020_auto_20160718_1849.py +++ /dev/null @@ -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, - ), - ] diff --git a/machines/migrations/0021_auto_20161006_1943.py b/machines/migrations/0021_auto_20161006_1943.py deleted file mode 100644 index 07be00b5..00000000 --- a/machines/migrations/0021_auto_20161006_1943.py +++ /dev/null @@ -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), - ) - ] diff --git a/machines/migrations/0022_auto_20161011_1829.py b/machines/migrations/0022_auto_20161011_1829.py deleted file mode 100644 index 0ceeeeaf..00000000 --- a/machines/migrations/0022_auto_20161011_1829.py +++ /dev/null @@ -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, - ), - ) - ] diff --git a/machines/migrations/0023_iplist_ip_type.py b/machines/migrations/0023_iplist_ip_type.py deleted file mode 100644 index 28320bb5..00000000 --- a/machines/migrations/0023_iplist_ip_type.py +++ /dev/null @@ -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, - ) - ] diff --git a/machines/migrations/0024_machinetype_need_infra.py b/machines/migrations/0024_machinetype_need_infra.py deleted file mode 100644 index 0ab4c3f2..00000000 --- a/machines/migrations/0024_machinetype_need_infra.py +++ /dev/null @@ -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), - ) - ] diff --git a/machines/migrations/0025_auto_20161023_0038.py b/machines/migrations/0025_auto_20161023_0038.py deleted file mode 100644 index 3e82e55b..00000000 --- a/machines/migrations/0025_auto_20161023_0038.py +++ /dev/null @@ -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, - ), - ), - ] diff --git a/machines/migrations/0026_auto_20161026_1348.py b/machines/migrations/0026_auto_20161026_1348.py deleted file mode 100644 index 59f00fbd..00000000 --- a/machines/migrations/0026_auto_20161026_1348.py +++ /dev/null @@ -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", - ), - ) - ] diff --git a/machines/migrations/0027_alias.py b/machines/migrations/0027_alias.py deleted file mode 100644 index e7149481..00000000 --- a/machines/migrations/0027_alias.py +++ /dev/null @@ -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)), - ], - ) - ] diff --git a/machines/migrations/0028_iptype_domaine_ip.py b/machines/migrations/0028_iptype_domaine_ip.py deleted file mode 100644 index 1928413f..00000000 --- a/machines/migrations/0028_iptype_domaine_ip.py +++ /dev/null @@ -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" - ), - ) - ] diff --git a/machines/migrations/0029_iptype_domaine_range.py b/machines/migrations/0029_iptype_domaine_range.py deleted file mode 100644 index 71333465..00000000 --- a/machines/migrations/0029_iptype_domaine_range.py +++ /dev/null @@ -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, - ), - ) - ] diff --git a/machines/migrations/0030_auto_20161118_1730.py b/machines/migrations/0030_auto_20161118_1730.py deleted file mode 100644 index 255f1082..00000000 --- a/machines/migrations/0030_auto_20161118_1730.py +++ /dev/null @@ -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")]) - ), - ] diff --git a/machines/migrations/0031_auto_20161119_1709.py b/machines/migrations/0031_auto_20161119_1709.py deleted file mode 100644 index 62955a38..00000000 --- a/machines/migrations/0031_auto_20161119_1709.py +++ /dev/null @@ -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), - ] - ), - ), - ] diff --git a/machines/migrations/0032_auto_20161119_1850.py b/machines/migrations/0032_auto_20161119_1850.py deleted file mode 100644 index d0c0bf54..00000000 --- a/machines/migrations/0032_auto_20161119_1850.py +++ /dev/null @@ -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), - ), - ] diff --git a/machines/migrations/0033_extension_need_infra.py b/machines/migrations/0033_extension_need_infra.py deleted file mode 100644 index 0e1692be..00000000 --- a/machines/migrations/0033_extension_need_infra.py +++ /dev/null @@ -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), - ) - ] diff --git a/machines/migrations/0034_iplist_need_infra.py b/machines/migrations/0034_iplist_need_infra.py deleted file mode 100644 index fe01748d..00000000 --- a/machines/migrations/0034_iplist_need_infra.py +++ /dev/null @@ -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), - ) - ] diff --git a/machines/migrations/0035_auto_20161224_1201.py b/machines/migrations/0035_auto_20161224_1201.py deleted file mode 100644 index f181ab7d..00000000 --- a/machines/migrations/0035_auto_20161224_1201.py +++ /dev/null @@ -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")] diff --git a/machines/migrations/0036_auto_20161224_1204.py b/machines/migrations/0036_auto_20161224_1204.py deleted file mode 100644 index c7481ddb..00000000 --- a/machines/migrations/0036_auto_20161224_1204.py +++ /dev/null @@ -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")]) - ), - ] diff --git a/machines/migrations/0037_domain_cname.py b/machines/migrations/0037_domain_cname.py deleted file mode 100644 index 94c3e9fc..00000000 --- a/machines/migrations/0037_domain_cname.py +++ /dev/null @@ -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 - ), - ) - ] diff --git a/machines/migrations/0038_auto_20161224_1721.py b/machines/migrations/0038_auto_20161224_1721.py deleted file mode 100644 index 1666de21..00000000 --- a/machines/migrations/0038_auto_20161224_1721.py +++ /dev/null @@ -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, - ), - ) - ] diff --git a/machines/migrations/0039_auto_20161224_1732.py b/machines/migrations/0039_auto_20161224_1732.py deleted file mode 100644 index 9a5c95c2..00000000 --- a/machines/migrations/0039_auto_20161224_1732.py +++ /dev/null @@ -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), - ) - ] diff --git a/machines/migrations/0040_remove_interface_dns.py b/machines/migrations/0040_remove_interface_dns.py deleted file mode 100644 index 9b6b35f6..00000000 --- a/machines/migrations/0040_remove_interface_dns.py +++ /dev/null @@ -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")] diff --git a/machines/migrations/0041_remove_ns_interface.py b/machines/migrations/0041_remove_ns_interface.py deleted file mode 100644 index d16e9057..00000000 --- a/machines/migrations/0041_remove_ns_interface.py +++ /dev/null @@ -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")] diff --git a/machines/migrations/0042_ns_ns.py b/machines/migrations/0042_ns_ns.py deleted file mode 100644 index f9f27c90..00000000 --- a/machines/migrations/0042_ns_ns.py +++ /dev/null @@ -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, - ) - ] diff --git a/machines/migrations/0043_auto_20170721_0350.py b/machines/migrations/0043_auto_20170721_0350.py deleted file mode 100644 index 607d6949..00000000 --- a/machines/migrations/0043_auto_20170721_0350.py +++ /dev/null @@ -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" - ), - ), - ] diff --git a/machines/migrations/0044_auto_20170808_0233.py b/machines/migrations/0044_auto_20170808_0233.py deleted file mode 100644 index 9028a865..00000000 --- a/machines/migrations/0044_auto_20170808_0233.py +++ /dev/null @@ -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" - ), - ), - ] diff --git a/machines/migrations/0045_auto_20170808_0348.py b/machines/migrations/0045_auto_20170808_0348.py deleted file mode 100644 index b44a1a8a..00000000 --- a/machines/migrations/0045_auto_20170808_0348.py +++ /dev/null @@ -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), - ), - ] diff --git a/machines/migrations/0046_auto_20170808_1423.py b/machines/migrations/0046_auto_20170808_1423.py deleted file mode 100644 index 86a69c6d..00000000 --- a/machines/migrations/0046_auto_20170808_1423.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-08 12:23 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0045_auto_20170808_0348")] - - operations = [ - migrations.AlterField( - model_name="service", - name="time_regen", - field=models.DurationField(default=datetime.timedelta(0, 60)), - ) - ] diff --git a/machines/migrations/0047_auto_20170809_0606.py b/machines/migrations/0047_auto_20170809_0606.py deleted file mode 100644 index 99337be2..00000000 --- a/machines/migrations/0047_auto_20170809_0606.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-09 04:06 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0046_auto_20170808_1423")] - - operations = [ - migrations.RemoveField(model_name="service", name="time_regen"), - migrations.AddField( - model_name="service", - name="min_time_regen", - field=models.DurationField( - default=datetime.timedelta(0, 60), - help_text="Temps minimal avant nouvelle génération du service", - ), - ), - migrations.AddField( - model_name="service", - name="regular_time_regen", - field=models.DurationField( - default=datetime.timedelta(0, 3600), - help_text="Temps maximal avant nouvelle génération du service", - ), - ), - ] diff --git a/machines/migrations/0048_auto_20170823_2315.py b/machines/migrations/0048_auto_20170823_2315.py deleted file mode 100644 index 28b1fd48..00000000 --- a/machines/migrations/0048_auto_20170823_2315.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-23 21:15 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0047_auto_20170809_0606")] - - operations = [ - migrations.AlterField( - model_name="iptype", - name="domaine_range", - field=models.IntegerField( - validators=[ - django.core.validators.MinValueValidator(16), - django.core.validators.MaxValueValidator(32), - ] - ), - ) - ] diff --git a/machines/migrations/0049_vlan.py b/machines/migrations/0049_vlan.py deleted file mode 100644 index fa892bb7..00000000 --- a/machines/migrations/0049_vlan.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-25 21:07 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0048_auto_20170823_2315")] - - operations = [ - migrations.CreateModel( - name="Vlan", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("vlan_id", models.IntegerField()), - ("name", models.CharField(max_length=256)), - ("comment", models.CharField(max_length=256)), - ], - ) - ] diff --git a/machines/migrations/0050_auto_20170826_0022.py b/machines/migrations/0050_auto_20170826_0022.py deleted file mode 100644 index a528fb8c..00000000 --- a/machines/migrations/0050_auto_20170826_0022.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-25 22:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0049_vlan")] - - operations = [ - migrations.AlterField( - model_name="vlan", - name="comment", - field=models.CharField(blank=True, max_length=256), - ) - ] diff --git a/machines/migrations/0051_iptype_vlan.py b/machines/migrations/0051_iptype_vlan.py deleted file mode 100644 index 66570cae..00000000 --- a/machines/migrations/0051_iptype_vlan.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-25 23:04 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0050_auto_20170826_0022")] - - operations = [ - migrations.AddField( - model_name="iptype", - name="vlan", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="machines.Vlan", - ), - ) - ] diff --git a/machines/migrations/0052_auto_20170828_2322.py b/machines/migrations/0052_auto_20170828_2322.py deleted file mode 100644 index 4a3bfc1e..00000000 --- a/machines/migrations/0052_auto_20170828_2322.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-28 21:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0051_iptype_vlan")] - - operations = [ - migrations.RenameField( - model_name="iptype", old_name="domaine_ip", new_name="domaine_ip_start" - ), - migrations.RemoveField(model_name="iptype", name="domaine_range"), - migrations.AddField( - model_name="iptype", - name="domaine_ip_stop", - field=models.GenericIPAddressField( - default="255.255.254.254", protocol="IPv4" - ), - preserve_default=False, - ), - ] diff --git a/machines/migrations/0053_text.py b/machines/migrations/0053_text.py deleted file mode 100644 index 4697dab9..00000000 --- a/machines/migrations/0053_text.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-05 15:38 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0052_auto_20170828_2322")] - - operations = [ - migrations.CreateModel( - name="Text", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("field1", models.CharField(max_length=255)), - ("field2", models.CharField(max_length=255)), - ], - ) - ] diff --git a/machines/migrations/0054_text_zone.py b/machines/migrations/0054_text_zone.py deleted file mode 100644 index 31250fc6..00000000 --- a/machines/migrations/0054_text_zone.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-05 15:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0053_text")] - - operations = [ - migrations.AddField( - model_name="text", - name="zone", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, to="machines.Extension" - ), - preserve_default=False, - ) - ] diff --git a/machines/migrations/0055_nas.py b/machines/migrations/0055_nas.py deleted file mode 100644 index 260a894f..00000000 --- a/machines/migrations/0055_nas.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-10 21:51 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0054_text_zone")] - - operations = [ - migrations.CreateModel( - name="Nas", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=255, unique=True)), - ( - "machine_type", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - related_name="machinetype_on_nas", - to="machines.MachineType", - ), - ), - ( - "nas_type", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - related_name="nas_type", - to="machines.MachineType", - ), - ), - ], - ) - ] diff --git a/machines/migrations/0056_nas_port_access_mode.py b/machines/migrations/0056_nas_port_access_mode.py deleted file mode 100644 index a714af49..00000000 --- a/machines/migrations/0056_nas_port_access_mode.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-13 13:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0055_nas")] - - operations = [ - migrations.AddField( - model_name="nas", - name="port_access_mode", - field=models.CharField( - choices=[("802.1X", "802.1X"), ("Mac-address", "Mac-address")], - default="802.1X", - max_length=32, - ), - ) - ] diff --git a/machines/migrations/0057_nas_autocapture_mac.py b/machines/migrations/0057_nas_autocapture_mac.py deleted file mode 100644 index 37b2f68a..00000000 --- a/machines/migrations/0057_nas_autocapture_mac.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-14 13:43 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0056_nas_port_access_mode")] - - operations = [ - migrations.AddField( - model_name="nas", - name="autocapture_mac", - field=models.BooleanField(default=False), - ) - ] diff --git a/machines/migrations/0058_auto_20171002_0350.py b/machines/migrations/0058_auto_20171002_0350.py deleted file mode 100644 index ca452b10..00000000 --- a/machines/migrations/0058_auto_20171002_0350.py +++ /dev/null @@ -1,75 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-02 01:50 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0057_nas_autocapture_mac")] - - operations = [ - migrations.CreateModel( - name="OuverturePort", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("begin", models.IntegerField()), - ("end", models.IntegerField()), - ( - "protocole", - models.CharField( - choices=[("T", "TCP"), ("U", "UDP")], default="T", max_length=1 - ), - ), - ( - "io", - models.CharField( - choices=[("I", "IN"), ("O", "OUT")], default="O", max_length=1 - ), - ), - ], - ), - migrations.CreateModel( - name="OuverturePortList", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "name", - models.CharField( - help_text="Nom de la configuration des ports.", max_length=255 - ), - ), - ], - ), - migrations.AddField( - model_name="ouvertureport", - name="port_list", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to="machines.OuverturePortList", - ), - ), - migrations.AddField( - model_name="interface", - name="port_lists", - field=models.ManyToManyField(blank=True, to="machines.OuverturePortList"), - ), - ] diff --git a/machines/migrations/0059_iptype_prefix_v6.py b/machines/migrations/0059_iptype_prefix_v6.py deleted file mode 100644 index 7df10904..00000000 --- a/machines/migrations/0059_iptype_prefix_v6.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-02 16:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0058_auto_20171002_0350")] - - operations = [ - migrations.AddField( - model_name="iptype", - name="prefix_v6", - field=models.GenericIPAddressField(blank=True, null=True, protocol="IPv6"), - ) - ] diff --git a/machines/migrations/0060_iptype_ouverture_ports.py b/machines/migrations/0060_iptype_ouverture_ports.py deleted file mode 100644 index 5515acb5..00000000 --- a/machines/migrations/0060_iptype_ouverture_ports.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-03 16:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0059_iptype_prefix_v6")] - - operations = [ - migrations.AddField( - model_name="iptype", - name="ouverture_ports", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.CASCADE, - to="machines.OuverturePortList", - ), - ) - ] diff --git a/machines/migrations/0061_auto_20171015_2033.py b/machines/migrations/0061_auto_20171015_2033.py deleted file mode 100644 index b89099f4..00000000 --- a/machines/migrations/0061_auto_20171015_2033.py +++ /dev/null @@ -1,40 +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 = [("machines", "0060_iptype_ouverture_ports")] - - operations = [ - migrations.AlterField( - model_name="mx", - name="priority", - field=models.PositiveIntegerField(unique=True), - ), - migrations.AlterField( - model_name="ouvertureport", - name="begin", - field=models.PositiveIntegerField( - validators=[django.core.validators.MaxValueValidator(65535)] - ), - ), - migrations.AlterField( - model_name="ouvertureport", - name="end", - field=models.PositiveIntegerField( - validators=[django.core.validators.MaxValueValidator(65535)] - ), - ), - migrations.AlterField( - model_name="vlan", - name="vlan_id", - field=models.PositiveIntegerField( - validators=[django.core.validators.MaxValueValidator(4095)] - ), - ), - ] diff --git a/machines/migrations/0062_extension_origin_v6.py b/machines/migrations/0062_extension_origin_v6.py deleted file mode 100644 index d78fb49c..00000000 --- a/machines/migrations/0062_extension_origin_v6.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-18 14:08 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0061_auto_20171015_2033")] - - operations = [ - migrations.AddField( - model_name="extension", - name="origin_v6", - field=models.GenericIPAddressField(blank=True, null=True, protocol="IPv6"), - ) - ] diff --git a/machines/migrations/0063_auto_20171020_0040.py b/machines/migrations/0063_auto_20171020_0040.py deleted file mode 100644 index 54d35980..00000000 --- a/machines/migrations/0063_auto_20171020_0040.py +++ /dev/null @@ -1,74 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-19 22:40 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import machines.models - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0062_extension_origin_v6"), - ] - - operations = [ - migrations.CreateModel( - name="SOA", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=255)), - ( - "mail", - models.EmailField( - help_text="Email du contact pour la zone", max_length=254 - ), - ), - ( - "refresh", - models.PositiveIntegerField( - default=86400, - help_text="Secondes avant que les DNS secondaires doivent demander le serial du DNS primaire pour détecter une modification", - ), - ), - ( - "retry", - models.PositiveIntegerField( - default=7200, - help_text="Secondes avant que les DNS secondaires fassent une nouvelle demande de serial en cas de timeout du DNS primaire", - ), - ), - ( - "expire", - models.PositiveIntegerField( - default=3600000, - help_text="Secondes après lesquelles les DNS secondaires arrêtent de de répondre aux requêtes en cas de timeout du DNS primaire", - ), - ), - ( - "ttl", - models.PositiveIntegerField( - default=172800, help_text="Time To Live" - ), - ), - ], - ), - migrations.AddField( - model_name="extension", - name="soa", - field=models.ForeignKey( - default=machines.models.SOA.new_default_soa, - on_delete=django.db.models.deletion.CASCADE, - to="machines.SOA", - ), - ), - ] diff --git a/machines/migrations/0064_auto_20171115_0253.py b/machines/migrations/0064_auto_20171115_0253.py deleted file mode 100644 index 0c644b46..00000000 --- a/machines/migrations/0064_auto_20171115_0253.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-11-15 01:53 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0063_auto_20171020_0040")] - - operations = [ - migrations.AlterField( - model_name="text", name="field2", field=models.TextField(max_length=2047) - ) - ] diff --git a/machines/migrations/0065_auto_20171115_1514.py b/machines/migrations/0065_auto_20171115_1514.py deleted file mode 100644 index d5b11c9a..00000000 --- a/machines/migrations/0065_auto_20171115_1514.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-11-15 14:14 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0064_auto_20171115_0253")] - - operations = [migrations.RenameModel(old_name="Text", new_name="Txt")] diff --git a/machines/migrations/0066_srv.py b/machines/migrations/0066_srv.py deleted file mode 100644 index 895806b7..00000000 --- a/machines/migrations/0066_srv.py +++ /dev/null @@ -1,76 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-11-16 00:10 -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 = [("machines", "0065_auto_20171115_1514")] - - operations = [ - migrations.CreateModel( - name="Srv", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("service", models.CharField(max_length=31)), - ( - "protocole", - models.CharField( - choices=[("TCP", "TCP"), ("UDP", "UDP")], - default="TCP", - max_length=3, - ), - ), - ( - "ttl", - models.PositiveIntegerField( - default=172800, help_text="Time To Live" - ), - ), - ( - "priority", - models.PositiveIntegerField( - validators=[django.core.validators.MaxValueValidator(65535)] - ), - ), - ( - "weight", - models.PositiveIntegerField( - validators=[django.core.validators.MaxValueValidator(65535)] - ), - ), - ( - "port", - models.PositiveIntegerField( - validators=[django.core.validators.MaxValueValidator(65535)] - ), - ), - ( - "extension", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - to="machines.Extension", - ), - ), - ( - "target", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - to="machines.Domain", - ), - ), - ], - ) - ] diff --git a/machines/migrations/0067_auto_20171116_0152.py b/machines/migrations/0067_auto_20171116_0152.py deleted file mode 100644 index 095210de..00000000 --- a/machines/migrations/0067_auto_20171116_0152.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-11-16 00:52 -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 = [("machines", "0066_srv")] - - operations = [ - migrations.AlterField( - model_name="srv", - name="port", - field=models.PositiveIntegerField( - help_text="Port (tcp/udp)", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ), - migrations.AlterField( - model_name="srv", - name="priority", - field=models.PositiveIntegerField( - help_text="La priorité du serveur cible (valeur entière non négative, plus elle est faible, plus ce serveur sera utilisé s'il est disponible)", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ), - migrations.AlterField( - model_name="srv", - name="target", - field=models.ForeignKey( - help_text="Serveur cible", - on_delete=django.db.models.deletion.PROTECT, - to="machines.Domain", - ), - ), - migrations.AlterField( - model_name="srv", - name="weight", - field=models.PositiveIntegerField( - help_text="Poids relatif pour les enregistrements de même priorité (valeur entière de 0 à 65535)", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ), - ] diff --git a/machines/migrations/0068_auto_20171116_0252.py b/machines/migrations/0068_auto_20171116_0252.py deleted file mode 100644 index 1cf0b6f0..00000000 --- a/machines/migrations/0068_auto_20171116_0252.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-11-16 01:52 -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 = [("machines", "0067_auto_20171116_0152")] - - operations = [ - migrations.AlterField( - model_name="extension", - name="name", - field=models.CharField( - help_text="Nom de la zone, doit commencer par un point (.example.org)", - max_length=255, - unique=True, - ), - ), - migrations.AlterField( - model_name="extension", - name="origin", - field=models.OneToOneField( - blank=True, - help_text="Enregistrement A associé à la zone", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="machines.IpList", - ), - ), - migrations.AlterField( - model_name="extension", - name="origin_v6", - field=models.GenericIPAddressField( - blank=True, - help_text="Enregistremen AAAA associé à la zone", - null=True, - protocol="IPv6", - ), - ), - migrations.AlterField( - model_name="srv", - name="priority", - field=models.PositiveIntegerField( - default=0, - help_text="La priorité du serveur cible (valeur entière non négative, plus elle est faible, plus ce serveur sera utilisé s'il est disponible)", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ), - migrations.AlterField( - model_name="srv", - name="weight", - field=models.PositiveIntegerField( - default=0, - help_text="Poids relatif pour les enregistrements de même priorité (valeur entière de 0 à 65535)", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ), - ] diff --git a/machines/migrations/0069_auto_20171116_0822.py b/machines/migrations/0069_auto_20171116_0822.py deleted file mode 100644 index 8b880635..00000000 --- a/machines/migrations/0069_auto_20171116_0822.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-11-16 07:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0068_auto_20171116_0252")] - - operations = [ - migrations.AlterField( - model_name="extension", - name="origin_v6", - field=models.GenericIPAddressField( - blank=True, - help_text="Enregistrement AAAA associé à la zone", - null=True, - protocol="IPv6", - ), - ) - ] diff --git a/machines/migrations/0070_auto_20171231_1947.py b/machines/migrations/0070_auto_20171231_1947.py deleted file mode 100644 index 52fec594..00000000 --- a/machines/migrations/0070_auto_20171231_1947.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 18:47 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0069_auto_20171116_0822")] - - operations = [ - migrations.AlterModelOptions( - name="domain", - options={"permissions": (("view_domain", "Peut voir un objet domain"),)}, - ), - migrations.AlterModelOptions( - name="extension", - options={ - "permissions": ( - ("view_extension", "Peut voir un objet extension"), - ("use_all_extension", "Peut utiliser toutes les extension"), - ) - }, - ), - migrations.AlterModelOptions( - name="interface", - options={ - "permissions": (("view_interface", "Peut voir un objet interface"),) - }, - ), - migrations.AlterModelOptions( - name="iplist", - options={"permissions": (("view_iplist", "Peut voir un objet iplist"),)}, - ), - migrations.AlterModelOptions( - name="iptype", - options={ - "permissions": ( - ("view_iptype", "Peut voir un objet iptype"), - ("use_all_iptype", "Peut utiliser tous les iptype"), - ) - }, - ), - migrations.AlterModelOptions( - name="machine", - options={ - "permissions": ( - ("view_machine", "Peut voir un objet machine quelquonque"), - ( - "change_machine_user", - "Peut changer le propriétaire d'une machine", - ), - ) - }, - ), - migrations.AlterModelOptions( - name="machinetype", - options={ - "permissions": ( - ("view_machinetype", "Peut voir un objet machinetype"), - ( - "use_all_machinetype", - "Peut utiliser n'importe quel type de machine", - ), - ) - }, - ), - migrations.AlterModelOptions( - name="mx", options={"permissions": (("view_mx", "Peut voir un objet mx"),)} - ), - migrations.AlterModelOptions( - name="nas", - options={"permissions": (("view_nas", "Peut voir un objet Nas"),)}, - ), - migrations.AlterModelOptions( - name="ns", options={"permissions": (("view_nx", "Peut voir un objet nx"),)} - ), - migrations.AlterModelOptions( - name="ouvertureportlist", - options={ - "permissions": ( - ("view_ouvertureportlist", "Peut voir un objet ouvertureport"), - ) - }, - ), - migrations.AlterModelOptions( - name="service", - options={"permissions": (("view_service", "Peut voir un objet service"),)}, - ), - migrations.AlterModelOptions( - name="soa", - options={"permissions": (("view_soa", "Peut voir un objet soa"),)}, - ), - migrations.AlterModelOptions( - name="srv", - options={"permissions": (("view_soa", "Peut voir un objet soa"),)}, - ), - migrations.AlterModelOptions( - name="txt", - options={"permissions": (("view_txt", "Peut voir un objet txt"),)}, - ), - migrations.AlterModelOptions( - name="vlan", - options={"permissions": (("view_vlan", "Peut voir un objet vlan"),)}, - ), - ] diff --git a/machines/migrations/0071_auto_20171231_2100.py b/machines/migrations/0071_auto_20171231_2100.py deleted file mode 100644 index 1545f0b1..00000000 --- a/machines/migrations/0071_auto_20171231_2100.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 20:00 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0070_auto_20171231_1947")] - - operations = [ - migrations.AlterModelOptions( - name="ns", options={"permissions": (("view_ns", "Peut voir un objet ns"),)} - ) - ] diff --git a/machines/migrations/0072_auto_20180108_1822.py b/machines/migrations/0072_auto_20180108_1822.py deleted file mode 100644 index c3cd72da..00000000 --- a/machines/migrations/0072_auto_20180108_1822.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-08 17:22 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0071_auto_20171231_2100")] - - operations = [ - migrations.AlterModelOptions( - name="interface", - options={ - "permissions": ( - ("view_interface", "Peut voir un objet interface"), - ( - "change_interface_machine", - "Peut changer le propriétaire d'une interface", - ), - ) - }, - ) - ] diff --git a/machines/migrations/0073_auto_20180128_2203.py b/machines/migrations/0073_auto_20180128_2203.py deleted file mode 100644 index a79689fe..00000000 --- a/machines/migrations/0073_auto_20180128_2203.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-28 21:03 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0072_auto_20180108_1822")] - - operations = [ - migrations.CreateModel( - name="Ipv6List", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("ipv6", models.GenericIPAddressField(protocol="IPv6", unique=True)), - ("slaac_ip", models.BooleanField(default=False)), - ( - "interface", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to="machines.Interface", - ), - ), - ], - ), - migrations.AlterUniqueTogether( - name="ipv6list", unique_together=set([("interface", "slaac_ip")]) - ), - ] diff --git a/machines/migrations/0074_auto_20180129_0352.py b/machines/migrations/0074_auto_20180129_0352.py deleted file mode 100644 index f61ded5e..00000000 --- a/machines/migrations/0074_auto_20180129_0352.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-29 02:52 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0073_auto_20180128_2203")] - - operations = [ - migrations.AlterModelOptions( - name="ipv6list", - options={ - "permissions": ( - ("view_ipv6list", "Peut voir un objet ipv6"), - ( - "change_ipv6list_slaac_ip", - "Peut changer la valeur slaac sur une ipv6", - ), - ) - }, - ) - ] diff --git a/machines/migrations/0075_auto_20180130_0052.py b/machines/migrations/0075_auto_20180130_0052.py deleted file mode 100644 index befd100c..00000000 --- a/machines/migrations/0075_auto_20180130_0052.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-29 23:52 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0074_auto_20180129_0352")] - - operations = [ - migrations.AlterUniqueTogether(name="ipv6list", unique_together=set([])) - ] diff --git a/machines/migrations/0076_auto_20180130_1623.py b/machines/migrations/0076_auto_20180130_1623.py deleted file mode 100644 index 906e11e2..00000000 --- a/machines/migrations/0076_auto_20180130_1623.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-30 15:23 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0075_auto_20180130_0052")] - - operations = [ - migrations.AlterField( - model_name="ipv6list", - name="interface", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="ipv6list", - to="machines.Interface", - ), - ) - ] diff --git a/machines/migrations/0077_auto_20180409_2243.py b/machines/migrations/0077_auto_20180409_2243.py deleted file mode 100644 index 33114d33..00000000 --- a/machines/migrations/0077_auto_20180409_2243.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-09 20:43 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0076_auto_20180130_1623")] - - operations = [ - migrations.AlterField( - model_name="extension", - name="origin", - field=models.ForeignKey( - blank=True, - help_text="Enregistrement A associé à la zone", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="machines.IpList", - ), - ) - ] diff --git a/machines/migrations/0078_auto_20180415_1252.py b/machines/migrations/0078_auto_20180415_1252.py deleted file mode 100644 index 161b9303..00000000 --- a/machines/migrations/0078_auto_20180415_1252.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-15 10:52 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0077_auto_20180409_2243")] - - operations = [ - migrations.AlterField( - model_name="srv", - name="priority", - field=models.PositiveIntegerField( - default=0, - help_text="La priorité du serveur cible (valeur entière non négative, plus elle est faible, plus ce serveur sera utilisé s'il est disponible)", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ) - ] diff --git a/machines/migrations/0079_auto_20180416_0107.py b/machines/migrations/0079_auto_20180416_0107.py deleted file mode 100644 index a2244ada..00000000 --- a/machines/migrations/0079_auto_20180416_0107.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-15 23:07 -from __future__ import unicode_literals - -from django.db import migrations - - -def rename_permission_soa_to_srv(apps, schema_editor): - Permission = apps.get_model("auth", "Permission") - # The Permission called 'view_soa' but in the Srv object - try: - to_rename = Permission.objects.get( - codename="view_soa", content_type__model="srv" - ) - except Permission.DoesNotExist: - # The permission is missing so no problem - pass - else: - to_rename.name = "Peut voir un object srv" - to_rename.codename = "view_srv" - to_rename.save() - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0078_auto_20180415_1252")] - - operations = [ - migrations.RunPython(rename_permission_soa_to_srv), - migrations.AlterModelOptions( - name="srv", - options={"permissions": (("view_srv", "Peut voir un objet srv"),)}, - ), - ] diff --git a/machines/migrations/0080_auto_20180502_2334.py b/machines/migrations/0080_auto_20180502_2334.py deleted file mode 100644 index 997fc151..00000000 --- a/machines/migrations/0080_auto_20180502_2334.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2018-05-03 04:34 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0079_auto_20180416_0107")] - - operations = [ - migrations.AlterField( - model_name="ns", - name="ns", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, to="machines.Domain" - ), - ) - ] diff --git a/machines/migrations/0081_auto_20180521_1413.py b/machines/migrations/0081_auto_20180521_1413.py deleted file mode 100644 index 7e5509aa..00000000 --- a/machines/migrations/0081_auto_20180521_1413.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-05-21 19:13 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0080_auto_20180502_2334")] - - operations = [ - migrations.AlterField( - model_name="extension", - name="soa", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to="machines.SOA" - ), - ) - ] diff --git a/machines/migrations/0082_auto_20180525_2209.py b/machines/migrations/0082_auto_20180525_2209.py deleted file mode 100644 index 3691946d..00000000 --- a/machines/migrations/0082_auto_20180525_2209.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-05-25 20:09 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0081_auto_20180521_1413")] - - operations = [ - migrations.AlterModelOptions( - name="service_link", - options={ - "permissions": ( - ("view_service_link", "Peut voir un objet service_link"), - ) - }, - ) - ] diff --git a/machines/migrations/0083_remove_duplicate_rights.py b/machines/migrations/0083_remove_duplicate_rights.py deleted file mode 100644 index a4f4ec32..00000000 --- a/machines/migrations/0083_remove_duplicate_rights.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations - - -def remove_permission_alias(apps, schema_editor): - Permission = apps.get_model("auth", "Permission") - for codename in ["add_alias", "change_alias", "delete_alias"]: - # Retrieve the wrong permission - try: - to_remove = Permission.objects.get( - codename=codename, content_type__model="domain" - ) - except Permission.DoesNotExist: - # The permission is missing so no problem - pass - else: - to_remove.delete() - - -def remove_permission_text(apps, schema_editor): - Permission = apps.get_model("auth", "Permission") - for codename in ["add_text", "change_text", "delete_text"]: - # Retrieve the wrong permission - try: - to_remove = Permission.objects.get( - codename=codename, content_type__model="txt" - ) - except Permission.DoesNotExist: - # The permission is missing so no problem - pass - else: - to_remove.delete() - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0082_auto_20180525_2209")] - - operations = [ - migrations.RunPython(remove_permission_text), - migrations.RunPython(remove_permission_alias), - ] diff --git a/machines/migrations/0084_dname.py b/machines/migrations/0084_dname.py deleted file mode 100644 index 37dfe623..00000000 --- a/machines/migrations/0084_dname.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-06-25 14:33 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0083_remove_duplicate_rights")] - - operations = [ - migrations.CreateModel( - name="DName", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("alias", models.CharField(max_length=255)), - ( - "zone", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - to="machines.Extension", - ), - ), - ], - options={ - "permissions": (("view_dname", "Can see a dname object"),), - "verbose_name": "DNAME entry", - "verbose_name_plural": "DNAME entries", - }, - bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model), - ) - ] diff --git a/machines/migrations/0085_sshfingerprint.py b/machines/migrations/0085_sshfingerprint.py deleted file mode 100644 index 74ca610f..00000000 --- a/machines/migrations/0085_sshfingerprint.py +++ /dev/null @@ -1,65 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-07-29 11:39 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0084_dname")] - - operations = [ - migrations.CreateModel( - name="SshFp", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "pub_key_entry", - models.TextField(help_text="SSH public key", max_length=2048), - ), - ( - "algo", - models.CharField( - choices=[ - ("ssh-rsa", "ssh-rsa"), - ("ssh-ed25519", "ssh-ed25519"), - ("ecdsa-sha2-nistp256", "ecdsa-sha2-nistp256"), - ("ecdsa-sha2-nistp384", "ecdsa-sha2-nistp384"), - ("ecdsa-sha2-nistp521", "ecdsa-sha2-nistp521"), - ], - max_length=32, - ), - ), - ( - "comment", - models.CharField( - blank=True, help_text="Comment", max_length=255, null=True - ), - ), - ( - "machine", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to="machines.Machine", - ), - ), - ], - options={ - "verbose_name": "SSHFP record", - "verbose_name_plural": "SSHFP records", - "permissions": (("view_sshfp", "Can see an SSHFP record"),), - }, - bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model), - ) - ] diff --git a/machines/migrations/0086_role.py b/machines/migrations/0086_role.py deleted file mode 100644 index c0956a5f..00000000 --- a/machines/migrations/0086_role.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-06-23 14:07 -from __future__ import unicode_literals - -from django.db import migrations, models -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0085_sshfingerprint")] - - operations = [ - migrations.CreateModel( - name="Role", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("role_type", models.CharField(max_length=255, unique=True)), - ("servers", models.ManyToManyField(to="machines.Interface")), - ( - "specific_role", - models.CharField( - blank=True, - choices=[ - ("dhcp-server", "DHCP server"), - ("switch-conf-server", "Switches configuration server"), - ("dns-recursif-server", "Recursive DNS server"), - ("ntp-server", "NTP server"), - ("radius-server", "Radius server"), - ("log-server", "Log server"), - ("ldap-master-server", "LDAP master server"), - ("ldap-backup-server", "LDAP backup server"), - ("smtp-server", "SMTP server"), - ("postgresql-server", "postgreSQL server"), - ("mysql-server", "mySQL server"), - ("sql-client", "SQL client"), - ("gateway", "Gatewaw"), - ], - max_length=32, - null=True, - ), - ), - ], - options={ - "permissions": (("view_role", "Can view a role."),), - "verbose_name": "Server role", - }, - bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model), - ) - ] diff --git a/machines/migrations/0087_dnssec.py b/machines/migrations/0087_dnssec.py deleted file mode 100644 index de505ea5..00000000 --- a/machines/migrations/0087_dnssec.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-06-25 15:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0086_role")] - - operations = [ - migrations.AddField( - model_name="iptype", - name="dnssec_reverse_v4", - field=models.BooleanField( - default=False, help_text="Activer DNSSEC sur le reverse DNS IPv4" - ), - ), - migrations.AddField( - model_name="iptype", - name="dnssec_reverse_v6", - field=models.BooleanField( - default=False, help_text="Activer DNSSEC sur le reverse DNS IPv6" - ), - ), - ] diff --git a/machines/migrations/0088_iptype_prefix_v6_length.py b/machines/migrations/0088_iptype_prefix_v6_length.py deleted file mode 100644 index 5380eb41..00000000 --- a/machines/migrations/0088_iptype_prefix_v6_length.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-07-16 18:46 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0087_dnssec")] - - operations = [ - migrations.AddField( - model_name="iptype", - name="prefix_v6_length", - field=models.IntegerField( - default=64, - validators=[ - django.core.validators.MaxValueValidator(128), - django.core.validators.MinValueValidator(0), - ], - ), - ) - ] diff --git a/machines/migrations/0089_auto_20180805_1148.py b/machines/migrations/0089_auto_20180805_1148.py deleted file mode 100644 index 3ad70d15..00000000 --- a/machines/migrations/0089_auto_20180805_1148.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-05 09:48 -from __future__ import unicode_literals - -from django.db import migrations -import macaddress.fields - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0088_iptype_prefix_v6_length")] - - operations = [ - migrations.AlterField( - model_name="interface", - name="mac_address", - field=macaddress.fields.MACAddressField(integer=False, max_length=17), - ) - ] diff --git a/machines/migrations/0090_auto_20180805_1459.py b/machines/migrations/0090_auto_20180805_1459.py deleted file mode 100644 index cc5f3efd..00000000 --- a/machines/migrations/0090_auto_20180805_1459.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-05 12:59 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0089_auto_20180805_1148")] - - operations = [ - migrations.AlterField( - model_name="ipv6list", - name="ipv6", - field=models.GenericIPAddressField(protocol="IPv6"), - ) - ] diff --git a/machines/migrations/0091_auto_20180806_2310.py b/machines/migrations/0091_auto_20180806_2310.py deleted file mode 100644 index 918f2215..00000000 --- a/machines/migrations/0091_auto_20180806_2310.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-06 21:10 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0090_auto_20180805_1459")] - - operations = [ - migrations.AddField( - model_name="iptype", - name="domaine_ip_netmask", - field=models.IntegerField( - default=24, - help_text="Netmask for the ipv4 range domain", - validators=[ - django.core.validators.MaxValueValidator(31), - django.core.validators.MinValueValidator(8), - ], - ), - ), - migrations.AddField( - model_name="iptype", - name="domaine_ip_network", - field=models.GenericIPAddressField( - blank=True, - help_text="Network containing the ipv4 range domain ip start/stop. Optional", - null=True, - protocol="IPv4", - ), - ), - ] diff --git a/machines/migrations/0092_auto_20180807_0926.py b/machines/migrations/0092_auto_20180807_0926.py deleted file mode 100644 index 9ef5657c..00000000 --- a/machines/migrations/0092_auto_20180807_0926.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-07 07:26 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0091_auto_20180806_2310")] - - operations = [ - migrations.RenameField( - model_name="iptype", old_name="dnssec_reverse_v4", new_name="reverse_v4" - ), - migrations.RenameField( - model_name="iptype", old_name="dnssec_reverse_v6", new_name="reverse_v6" - ), - ] diff --git a/machines/migrations/0093_auto_20180807_1115.py b/machines/migrations/0093_auto_20180807_1115.py deleted file mode 100644 index 04112c0d..00000000 --- a/machines/migrations/0093_auto_20180807_1115.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-07 09:15 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0092_auto_20180807_0926")] - - operations = [ - migrations.AlterField( - model_name="mx", - name="name", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, to="machines.Domain" - ), - ), - migrations.AlterField( - model_name="mx", name="priority", field=models.PositiveIntegerField() - ), - ] diff --git a/machines/migrations/0094_auto_20180815_1918.py b/machines/migrations/0094_auto_20180815_1918.py deleted file mode 100644 index 0465e489..00000000 --- a/machines/migrations/0094_auto_20180815_1918.py +++ /dev/null @@ -1,420 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-15 17:18 -from __future__ import unicode_literals - -import datetime -import django.core.validators -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0093_auto_20180807_1115")] - - operations = [ - migrations.AlterModelOptions( - name="dname", - options={ - "permissions": (("view_dname", "Can view a DNAME record object"),), - "verbose_name": "DNAME record", - "verbose_name_plural": "DNAME records", - }, - ), - migrations.AlterModelOptions( - name="domain", - options={ - "permissions": (("view_domain", "Can view a domain object"),), - "verbose_name": "domain", - "verbose_name_plural": "domains", - }, - ), - migrations.AlterModelOptions( - name="extension", - options={ - "permissions": ( - ("view_extension", "Can view an extension object"), - ("use_all_extension", "Can use all extensions"), - ), - "verbose_name": "DNS extension", - "verbose_name_plural": "DNS extensions", - }, - ), - migrations.AlterModelOptions( - name="interface", - options={ - "permissions": ( - ("view_interface", "Can view an interface object"), - ( - "change_interface_machine", - "Can change the owner of an interface", - ), - ), - "verbose_name": "interface", - "verbose_name_plural": "interfaces", - }, - ), - migrations.AlterModelOptions( - name="iplist", - options={ - "permissions": ( - ("view_iplist", "Can view an IPv4 addresses list object"), - ), - "verbose_name": "IPv4 addresses list", - "verbose_name_plural": "IPv4 addresses lists", - }, - ), - migrations.AlterModelOptions( - name="iptype", - options={ - "permissions": ( - ("view_iptype", "Can view an IP type object"), - ("use_all_iptype", "Can use all IP types"), - ), - "verbose_name": "IP type", - "verbose_name_plural": "IP types", - }, - ), - migrations.AlterModelOptions( - name="ipv6list", - options={ - "permissions": ( - ("view_ipv6list", "Can view an IPv6 addresses list object"), - ( - "change_ipv6list_slaac_ip", - "Can change the SLAAC value of an IPv6 addresses list", - ), - ), - "verbose_name": "IPv6 addresses list", - "verbose_name_plural": "IPv6 addresses lists", - }, - ), - migrations.AlterModelOptions( - name="machine", - options={ - "permissions": ( - ("view_machine", "Can view a machine object"), - ("change_machine_user", "Can change the user of a machine"), - ), - "verbose_name": "machine", - "verbose_name_plural": "machines", - }, - ), - migrations.AlterModelOptions( - name="machinetype", - options={ - "permissions": ( - ("view_machinetype", "Can view a machine type object"), - ("use_all_machinetype", "Can use all machine types"), - ), - "verbose_name": "machine type", - "verbose_name_plural": "machine types", - }, - ), - migrations.AlterModelOptions( - name="mx", - options={ - "permissions": (("view_mx", "Can view an MX record object"),), - "verbose_name": "MX record", - "verbose_name_plural": "MX records", - }, - ), - migrations.AlterModelOptions( - name="nas", - options={ - "permissions": (("view_nas", "Can view a NAS device object"),), - "verbose_name": "NAS device", - "verbose_name_plural": "NAS devices", - }, - ), - migrations.AlterModelOptions( - name="ns", - options={ - "permissions": (("view_ns", "Can view an NS record object"),), - "verbose_name": "NS record", - "verbose_name_plural": "NS records", - }, - ), - migrations.AlterModelOptions( - name="ouvertureport", options={"verbose_name": "ports openings"} - ), - migrations.AlterModelOptions( - name="ouvertureportlist", - options={ - "permissions": ( - ("view_ouvertureportlist", "Can view a ports opening list object"), - ), - "verbose_name": "ports opening list", - "verbose_name_plural": "ports opening lists", - }, - ), - migrations.AlterModelOptions( - name="role", - options={ - "permissions": (("view_role", "Can view a role object"),), - "verbose_name": "server role", - "verbose_name_plural": "server roles", - }, - ), - migrations.AlterModelOptions( - name="service", - options={ - "permissions": (("view_service", "Can view a service object"),), - "verbose_name": "service to generate (DHCP, DNS, ...)", - "verbose_name_plural": "services to generate (DHCP, DNS, ...)", - }, - ), - migrations.AlterModelOptions( - name="service_link", - options={ - "permissions": ( - ("view_service_link", "Can view a service server link object"), - ), - "verbose_name": "link between service and server", - "verbose_name_plural": "links between service and server", - }, - ), - migrations.AlterModelOptions( - name="soa", - options={ - "permissions": (("view_soa", "Can view an SOA record object"),), - "verbose_name": "SOA record", - "verbose_name_plural": "SOA records", - }, - ), - migrations.AlterModelOptions( - name="srv", - options={ - "permissions": (("view_srv", "Can view an SRV record object"),), - "verbose_name": "SRV record", - "verbose_name_plural": "SRV records", - }, - ), - migrations.AlterModelOptions( - name="sshfp", - options={ - "permissions": (("view_sshfp", "Can view an SSHFP record object"),), - "verbose_name": "SSHFP record", - "verbose_name_plural": "SSHFP records", - }, - ), - migrations.AlterModelOptions( - name="txt", - options={ - "permissions": (("view_txt", "Can view a TXT record object"),), - "verbose_name": "TXT record", - "verbose_name_plural": "TXT records", - }, - ), - migrations.AlterModelOptions( - name="vlan", - options={ - "permissions": (("view_vlan", "Can view a VLAN object"),), - "verbose_name": "VLAN", - "verbose_name_plural": "VLANs", - }, - ), - migrations.AlterField( - model_name="domain", - name="name", - field=models.CharField( - help_text="Mandatory and unique, must not contain dots.", max_length=255 - ), - ), - migrations.AlterField( - model_name="extension", - name="name", - field=models.CharField( - help_text="Zone name, must begin with a dot (.example.org)", - max_length=255, - unique=True, - ), - ), - migrations.AlterField( - model_name="extension", - name="origin", - field=models.ForeignKey( - blank=True, - help_text="A record associated with the zone", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="machines.IpList", - ), - ), - migrations.AlterField( - model_name="extension", - name="origin_v6", - field=models.GenericIPAddressField( - blank=True, - help_text="AAAA record associated with the zone", - null=True, - protocol="IPv6", - ), - ), - migrations.AlterField( - model_name="iptype", - name="domaine_ip_netmask", - field=models.IntegerField( - default=24, - help_text="Netmask for the domain's IPv4 range", - validators=[ - django.core.validators.MaxValueValidator(31), - django.core.validators.MinValueValidator(8), - ], - ), - ), - migrations.AlterField( - model_name="iptype", - name="domaine_ip_network", - field=models.GenericIPAddressField( - blank=True, - help_text="Network containing the domain's IPv4 range (optional)", - null=True, - protocol="IPv4", - ), - ), - migrations.AlterField( - model_name="iptype", - name="reverse_v4", - field=models.BooleanField( - default=False, help_text="Enable reverse DNS for IPv4" - ), - ), - migrations.AlterField( - model_name="iptype", - name="reverse_v6", - field=models.BooleanField( - default=False, help_text="Enable reverse DNS for IPv6" - ), - ), - migrations.AlterField( - model_name="machine", - name="name", - field=models.CharField( - blank=True, help_text="Optional", max_length=255, null=True - ), - ), - migrations.AlterField( - model_name="ouvertureportlist", - name="name", - field=models.CharField( - help_text="Name of the ports configuration", max_length=255 - ), - ), - migrations.AlterField( - model_name="role", - name="specific_role", - field=models.CharField( - blank=True, - choices=[ - ("dhcp-server", "DHCP server"), - ("switch-conf-server", "Switches configuration server"), - ("dns-recursif-server", "Recursive DNS server"), - ("ntp-server", "NTP server"), - ("radius-server", "RADIUS server"), - ("log-server", "Log server"), - ("ldap-master-server", "LDAP master server"), - ("ldap-backup-server", "LDAP backup server"), - ("smtp-server", "SMTP server"), - ("postgresql-server", "postgreSQL server"), - ("mysql-server", "mySQL server"), - ("sql-client", "SQL client"), - ("gateway", "Gateway"), - ], - max_length=32, - null=True, - ), - ), - migrations.AlterField( - model_name="service", - name="min_time_regen", - field=models.DurationField( - default=datetime.timedelta(0, 60), - help_text="Minimal time before regeneration of the service.", - ), - ), - migrations.AlterField( - model_name="service", - name="regular_time_regen", - field=models.DurationField( - default=datetime.timedelta(0, 3600), - help_text="Maximal time before regeneration of the service.", - ), - ), - migrations.AlterField( - model_name="soa", - name="expire", - field=models.PositiveIntegerField( - default=3600000, - help_text="Seconds before the secondary DNS stop answering requests in case of primary DNS timeout", - ), - ), - migrations.AlterField( - model_name="soa", - name="mail", - field=models.EmailField( - help_text="Contact email address for the zone", max_length=254 - ), - ), - migrations.AlterField( - model_name="soa", - name="refresh", - field=models.PositiveIntegerField( - default=86400, - help_text="Seconds before the secondary DNS have to ask the primary DNS serial to detect a modification", - ), - ), - migrations.AlterField( - model_name="soa", - name="retry", - field=models.PositiveIntegerField( - default=7200, - help_text="Seconds before the secondary DNS ask the serial again in case of a primary DNS timeout", - ), - ), - migrations.AlterField( - model_name="soa", - name="ttl", - field=models.PositiveIntegerField(default=172800, help_text="Time to Live"), - ), - migrations.AlterField( - model_name="srv", - name="port", - field=models.PositiveIntegerField( - help_text="TCP/UDP port", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ), - migrations.AlterField( - model_name="srv", - name="priority", - field=models.PositiveIntegerField( - default=0, - help_text="Priority of the target server (positive integer value, the lower it is, the more the server will be used if available)", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ), - migrations.AlterField( - model_name="srv", - name="target", - field=models.ForeignKey( - help_text="Target server", - on_delete=django.db.models.deletion.PROTECT, - to="machines.Domain", - ), - ), - migrations.AlterField( - model_name="srv", - name="ttl", - field=models.PositiveIntegerField(default=172800, help_text="Time to Live"), - ), - migrations.AlterField( - model_name="srv", - name="weight", - field=models.PositiveIntegerField( - default=0, - help_text="Relative weight for records with the same priority (integer value between 0 and 65535)", - validators=[django.core.validators.MaxValueValidator(65535)], - ), - ), - ] diff --git a/machines/migrations/0095_auto_20180919_2225.py b/machines/migrations/0095_auto_20180919_2225.py deleted file mode 100644 index 6a7536ee..00000000 --- a/machines/migrations/0095_auto_20180919_2225.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-09-19 20:25 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0094_auto_20180815_1918")] - - operations = [ - migrations.AddField( - model_name="vlan", - name="arp_protect", - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name="vlan", - name="dhcp_snooping", - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name="vlan", - name="dhcpv6_snooping", - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name="vlan", - name="igmp", - field=models.BooleanField(default=False, help_text="Gestion multicast v4"), - ), - migrations.AddField( - model_name="vlan", - name="mld", - field=models.BooleanField(default=False, help_text="Gestion multicast v6"), - ), - ] diff --git a/machines/migrations/0096_auto_20181013_1417.py b/machines/migrations/0096_auto_20181013_1417.py deleted file mode 100644 index 0017ead9..00000000 --- a/machines/migrations/0096_auto_20181013_1417.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-10-13 12:17 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0095_auto_20180919_2225")] - - operations = [ - migrations.AlterField( - model_name="machine", - name="user", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL - ), - ) - ] diff --git a/machines/migrations/0097_extension_dnssec.py b/machines/migrations/0097_extension_dnssec.py deleted file mode 100644 index 6da514ac..00000000 --- a/machines/migrations/0097_extension_dnssec.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-12-24 14:00 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0096_auto_20181013_1417")] - - operations = [ - migrations.AddField( - model_name="extension", - name="dnssec", - field=models.BooleanField( - default=False, help_text="Should the zone be signed with DNSSEC" - ), - ) - ] diff --git a/machines/migrations/0098_auto_20190102_1745.py b/machines/migrations/0098_auto_20190102_1745.py deleted file mode 100644 index 55ec21ea..00000000 --- a/machines/migrations/0098_auto_20190102_1745.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-02 23:45 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0097_extension_dnssec")] - - operations = [ - migrations.AlterField( - model_name="role", - name="specific_role", - field=models.CharField( - blank=True, - choices=[ - ("dhcp-server", "DHCP server"), - ("switch-conf-server", "Switches configuration server"), - ("dns-recursif-server", "Recursive DNS server"), - ("dns-recursive-server", "Recursive DNS server"), - ("ntp-server", "NTP server"), - ("radius-server", "RADIUS server"), - ("log-server", "Log server"), - ("ldap-master-server", "LDAP master server"), - ("ldap-backup-server", "LDAP backup server"), - ("smtp-server", "SMTP server"), - ("postgresql-server", "postgreSQL server"), - ("mysql-server", "mySQL server"), - ("sql-client", "SQL client"), - ("gateway", "Gateway"), - ], - max_length=32, - null=True, - ), - ) - ] diff --git a/machines/migrations/0099_role_recursive_dns.py b/machines/migrations/0099_role_recursive_dns.py deleted file mode 100644 index bc1b8ab8..00000000 --- a/machines/migrations/0099_role_recursive_dns.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-02 23:45 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def migrate(apps, schema_editor): - Role = apps.get_model("machines", "Role") - - for role in Role.objects.filter(specific_role="dns-recursif-server"): - role.specific_role = "dns-recursive-server" - role.save() - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0098_auto_20190102_1745")] - - operations = [migrations.RunPython(migrate)] diff --git a/machines/migrations/0100_auto_20190102_1753.py b/machines/migrations/0100_auto_20190102_1753.py deleted file mode 100644 index 3d3e315f..00000000 --- a/machines/migrations/0100_auto_20190102_1753.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-02 23:53 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0099_role_recursive_dns")] - - operations = [ - migrations.AlterField( - model_name="role", - name="specific_role", - field=models.CharField( - blank=True, - choices=[ - ("dhcp-server", "DHCP server"), - ("switch-conf-server", "Switches configuration server"), - ("dns-recursive-server", "Recursive DNS server"), - ("ntp-server", "NTP server"), - ("radius-server", "RADIUS server"), - ("log-server", "Log server"), - ("ldap-master-server", "LDAP master server"), - ("ldap-backup-server", "LDAP backup server"), - ("smtp-server", "SMTP server"), - ("postgresql-server", "postgreSQL server"), - ("mysql-server", "mySQL server"), - ("sql-client", "SQL client"), - ("gateway", "Gateway"), - ], - max_length=32, - null=True, - ), - ) - ] diff --git a/machines/migrations/0101_auto_20190108_1623.py b/machines/migrations/0101_auto_20190108_1623.py deleted file mode 100644 index 009e11b4..00000000 --- a/machines/migrations/0101_auto_20190108_1623.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-08 22:23 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0100_auto_20190102_1753")] - - operations = [ - migrations.AlterModelOptions( - name="ouvertureport", - options={ - "verbose_name": "ports opening", - "verbose_name_plural": "ports openings", - }, - ), - migrations.AlterField( - model_name="nas", - name="port_access_mode", - field=models.CharField( - choices=[("802.1X", "802.1X"), ("Mac-address", "MAC-address")], - default="802.1X", - max_length=32, - ), - ), - migrations.AlterField( - model_name="vlan", - name="igmp", - field=models.BooleanField( - default=False, help_text="v4 multicast management" - ), - ), - migrations.AlterField( - model_name="vlan", - name="mld", - field=models.BooleanField( - default=False, help_text="v6 multicast management" - ), - ), - ] diff --git a/machines/migrations/0102_auto_20190303_1611.py b/machines/migrations/0102_auto_20190303_1611.py deleted file mode 100644 index 29f97700..00000000 --- a/machines/migrations/0102_auto_20190303_1611.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-03-03 15:11 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0101_auto_20190108_1623")] - - operations = [ - migrations.RenameField( - model_name="interface", old_name="type", new_name="machine_type" - ), - migrations.RenameField(model_name="iptype", old_name="type", new_name="name"), - migrations.RenameField( - model_name="machinetype", old_name="type", new_name="name" - ), - ] diff --git a/machines/migrations/0103_auto_20191002_2222.py b/machines/migrations/0103_auto_20191002_2222.py deleted file mode 100644 index 3c74721b..00000000 --- a/machines/migrations/0103_auto_20191002_2222.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-10-02 20:22 -from __future__ import unicode_literals - -from django.db import migrations, models -import machines.models - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0102_auto_20190303_1611"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ] - - operations = [ - migrations.AddField( - model_name="domain", - name="ttl", - field=models.PositiveIntegerField( - default=0, verbose_name="Time To Live (TTL)" - ), - ), - migrations.AddField( - model_name="mx", - name="ttl", - field=models.PositiveIntegerField( - default=172800, verbose_name="Time To Live (TTL)" - ), - ), - migrations.AddField( - model_name="ns", - name="ttl", - field=models.PositiveIntegerField( - default=172800, verbose_name="Time To Live (TTL)" - ), - ), - migrations.AddField( - model_name="txt", - name="ttl", - field=models.PositiveIntegerField( - default=172800, verbose_name="Time To Live (TTL)" - ), - ), - ] diff --git a/machines/migrations/0104_auto_20191002_2231.py b/machines/migrations/0104_auto_20191002_2231.py deleted file mode 100644 index 3f2c22e2..00000000 --- a/machines/migrations/0104_auto_20191002_2231.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-10-02 20:31 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0103_auto_20191002_2222")] - - operations = [ - migrations.AlterModelOptions( - name="domain", - options={ - "permissions": ( - ("view_domain", "Can view a domain object"), - ("change_ttl", "Can change TTL of a domain object"), - ), - "verbose_name": "domain", - "verbose_name_plural": "domains", - }, - ) - ] diff --git a/machines/migrations/0105_dname_ttl.py b/machines/migrations/0105_dname_ttl.py deleted file mode 100644 index 6cdca097..00000000 --- a/machines/migrations/0105_dname_ttl.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-10-02 21:47 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0104_auto_20191002_2231")] - - operations = [ - migrations.AddField( - model_name="dname", - name="ttl", - field=models.PositiveIntegerField( - default=172800, verbose_name="Time To Live (TTL)" - ), - ) - ] diff --git a/machines/migrations/0106_auto_20191120_0159.py b/machines/migrations/0106_auto_20191120_0159.py deleted file mode 100644 index 5526a818..00000000 --- a/machines/migrations/0106_auto_20191120_0159.py +++ /dev/null @@ -1,136 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-11-20 00:59 -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 = [ - ('machines', '0105_dname_ttl'), - ] - - operations = [ - migrations.AlterModelOptions( - name='domain', - options={'permissions': (('view_domain', 'Can view a domain object'), ('change_ttl', 'Can change the TTL of a domain object')), 'verbose_name': 'domain', 'verbose_name_plural': 'domains'}, - ), - migrations.AlterField( - model_name='extension', - name='dnssec', - field=models.BooleanField(default=False, help_text='Should the zone be signed with DNSSEC.'), - ), - migrations.AlterField( - model_name='extension', - name='name', - field=models.CharField(help_text='Zone name, must begin with a dot (.example.org).', max_length=255, unique=True), - ), - migrations.AlterField( - model_name='extension', - name='origin', - field=models.ForeignKey(blank=True, help_text='A record associated with the zone.', null=True, on_delete=django.db.models.deletion.PROTECT, to='machines.IpList'), - ), - migrations.AlterField( - model_name='extension', - name='origin_v6', - field=models.GenericIPAddressField(blank=True, help_text='AAAA record associated with the zone.', null=True, protocol='IPv6'), - ), - migrations.AlterField( - model_name='iptype', - name='domaine_ip_netmask', - field=models.IntegerField(default=24, help_text="Netmask for the domain's IPv4 range.", validators=[django.core.validators.MaxValueValidator(31), django.core.validators.MinValueValidator(8)]), - ), - migrations.AlterField( - model_name='iptype', - name='domaine_ip_network', - field=models.GenericIPAddressField(blank=True, help_text="Network containing the domain's IPv4 range (optional).", null=True, protocol='IPv4'), - ), - migrations.AlterField( - model_name='iptype', - name='reverse_v4', - field=models.BooleanField(default=False, help_text='Enable reverse DNS for IPv4.'), - ), - migrations.AlterField( - model_name='iptype', - name='reverse_v6', - field=models.BooleanField(default=False, help_text='Enable reverse DNS for IPv6.'), - ), - migrations.AlterField( - model_name='machine', - name='name', - field=models.CharField(blank=True, help_text='Optional.', max_length=255, null=True), - ), - migrations.AlterField( - model_name='soa', - name='expire', - field=models.PositiveIntegerField(default=3600000, help_text='Seconds before the secondary DNS stop answering requests in case of primary DNS timeout.'), - ), - migrations.AlterField( - model_name='soa', - name='mail', - field=models.EmailField(help_text='Contact email address for the zone.', max_length=254), - ), - migrations.AlterField( - model_name='soa', - name='refresh', - field=models.PositiveIntegerField(default=86400, help_text='Seconds before the secondary DNS have to ask the primary DNS serial to detect a modification.'), - ), - migrations.AlterField( - model_name='soa', - name='retry', - field=models.PositiveIntegerField(default=7200, help_text='Seconds before the secondary DNS ask the serial again in case of a primary DNS timeout.'), - ), - migrations.AlterField( - model_name='soa', - name='ttl', - field=models.PositiveIntegerField(default=172800, help_text='Time To Live.'), - ), - migrations.AlterField( - model_name='srv', - name='port', - field=models.PositiveIntegerField(help_text='TCP/UDP port.', validators=[django.core.validators.MaxValueValidator(65535)]), - ), - migrations.AlterField( - model_name='srv', - name='priority', - field=models.PositiveIntegerField(default=0, help_text='Priority of the target server (positive integer value, the lower it is, the more the server will be used if available).', validators=[django.core.validators.MaxValueValidator(65535)]), - ), - migrations.AlterField( - model_name='srv', - name='target', - field=models.ForeignKey(help_text='Target server.', on_delete=django.db.models.deletion.PROTECT, to='machines.Domain'), - ), - migrations.AlterField( - model_name='srv', - name='ttl', - field=models.PositiveIntegerField(default=172800, help_text='Time To Live.'), - ), - migrations.AlterField( - model_name='srv', - name='weight', - field=models.PositiveIntegerField(default=0, help_text='Relative weight for records with the same priority (integer value between 0 and 65535).', validators=[django.core.validators.MaxValueValidator(65535)]), - ), - migrations.AlterField( - model_name='sshfp', - name='comment', - field=models.CharField(blank=True, help_text='Comment.', max_length=255, null=True), - ), - migrations.AlterField( - model_name='sshfp', - name='pub_key_entry', - field=models.TextField(help_text='SSH public key.', max_length=2048), - ), - migrations.AlterField( - model_name='vlan', - name='igmp', - field=models.BooleanField(default=False, help_text='v4 multicast management.'), - ), - migrations.AlterField( - model_name='vlan', - name='mld', - field=models.BooleanField(default=False, help_text='v6 multicast management.'), - ), - ] diff --git a/machines/migrations/0107_fix_lowercase_domain.py b/machines/migrations/0107_fix_lowercase_domain.py deleted file mode 100644 index e47a4680..00000000 --- a/machines/migrations/0107_fix_lowercase_domain.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations -from django.core.exceptions import ValidationError -import logging - -def fix_duplicate(apps, schema_editor): - logger = logging.getLogger(__name__) - db_alias = schema_editor.connection.alias - Domain = apps.get_model("machines", "Domain") - domains_to_fix = filter(lambda m : not m.name.islower(), Domain.objects.using(db_alias).all()) - for domain in domains_to_fix: - try: - domain.name = domain.name.lower() - domain.validate_unique() - domain.clean() - except ValidationError: - old_name = domain.name - domain.name = domain.name.lower() + str(domain.interface_parent.id) - domain.clean() - warning_message = "Warning : Domain %s has been renamed %s due to dns uniqueness" % (old_name, domain.name) - logger.warning(warning_message) - domain.save() - -def unfix_duplicate(apps, schema_editor): - return - - -class Migration(migrations.Migration): - - dependencies = [("machines", "0106_auto_20191120_0159")] - - operations = [ - migrations.RunPython(fix_duplicate, unfix_duplicate), - ] diff --git a/machines/migrations/0108_ipv6list_active.py b/machines/migrations/0108_ipv6list_active.py deleted file mode 100644 index bf8b18e5..00000000 --- a/machines/migrations/0108_ipv6list_active.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-08-04 18:17 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('machines', '0107_fix_lowercase_domain'), - ] - - operations = [ - migrations.AddField( - model_name='ipv6list', - name='active', - field=models.BooleanField(default=True, help_text='If false,the DNS will not provide this ip.'), - ), - ] diff --git a/preferences/migrations/0001_initial.py b/preferences/migrations/0001_initial.py deleted file mode 100644 index 4514181e..00000000 --- a/preferences/migrations/0001_initial.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-25 02:19 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [] - - operations = [ - migrations.CreateModel( - name="GeneralOption", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("search_display_page", models.IntegerField(default=15)), - ], - ), - migrations.CreateModel( - name="OptionalMachine", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("password_machine", models.BooleanField(default=True)), - ("max_lambdauser_interfaces", models.IntegerField(default=10)), - ("max_lambdauser_aliases", models.IntegerField(default=10)), - ], - ), - migrations.CreateModel( - name="OptionalUser", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("is_tel_mandatory", models.BooleanField(default=True)), - ("user_solde", models.BooleanField(default=True)), - ], - ), - ] diff --git a/preferences/migrations/0002_auto_20170625_1923.py b/preferences/migrations/0002_auto_20170625_1923.py deleted file mode 100644 index 2d655f21..00000000 --- a/preferences/migrations/0002_auto_20170625_1923.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-25 17:23 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0001_initial")] - - operations = [ - migrations.AddField( - model_name="generaloption", - name="pagination_large_number", - field=models.IntegerField(default=8), - ), - migrations.AddField( - model_name="generaloption", - name="pagination_number", - field=models.IntegerField(default=25), - ), - migrations.AddField( - model_name="optionaluser", - name="gpg_fingerprint", - field=models.BooleanField(default=True), - ), - migrations.AlterField( - model_name="optionalmachine", - name="password_machine", - field=models.BooleanField(default=False), - ), - migrations.AlterField( - model_name="optionaluser", - name="user_solde", - field=models.BooleanField(default=False), - ), - ] diff --git a/preferences/migrations/0003_optionaluser_solde_negatif.py b/preferences/migrations/0003_optionaluser_solde_negatif.py deleted file mode 100644 index acca8aaa..00000000 --- a/preferences/migrations/0003_optionaluser_solde_negatif.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-26 01:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0002_auto_20170625_1923")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="solde_negatif", - field=models.DecimalField(decimal_places=2, default=0, max_digits=5), - ) - ] diff --git a/preferences/migrations/0004_assooption_services.py b/preferences/migrations/0004_assooption_services.py deleted file mode 100644 index c4be07f5..00000000 --- a/preferences/migrations/0004_assooption_services.py +++ /dev/null @@ -1,64 +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 = [("preferences", "0003_optionaluser_solde_negatif")] - - operations = [ - migrations.CreateModel( - name="AssoOption", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "name", - models.CharField( - default="Association réseau de l'école machin", max_length=32 - ), - ), - ("siret", models.CharField(default="00000000000000", max_length=32)), - ( - "adresse", - models.CharField( - default="1 Rue de l'exemple, 94230 Cachan", max_length=128 - ), - ), - ( - "contact", - models.EmailField(default="contact@example.org", max_length=254), - ), - ("telephone", models.CharField(default="0000000000", max_length=15)), - ("pseudo", models.CharField(default="Asso", max_length=32)), - ], - ), - migrations.CreateModel( - name="Services", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=32)), - ("url", models.URLField()), - ("description", models.TextField()), - ("image", models.ImageField(upload_to="logo")), - ], - ), - ] diff --git a/preferences/migrations/0005_auto_20170824_0139.py b/preferences/migrations/0005_auto_20170824_0139.py deleted file mode 100644 index 1bb5530e..00000000 --- a/preferences/migrations/0005_auto_20170824_0139.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-23 23:39 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0004_assooption_services")] - - operations = [migrations.RenameModel(old_name="Services", new_name="Service")] diff --git a/preferences/migrations/0006_auto_20170824_0143.py b/preferences/migrations/0006_auto_20170824_0143.py deleted file mode 100644 index 32d83d5e..00000000 --- a/preferences/migrations/0006_auto_20170824_0143.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-23 23:43 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0005_auto_20170824_0139")] - - operations = [ - migrations.AlterField( - model_name="service", - name="image", - field=models.ImageField(blank=True, upload_to="logo"), - ) - ] diff --git a/preferences/migrations/0007_auto_20170824_2056.py b/preferences/migrations/0007_auto_20170824_2056.py deleted file mode 100644 index f7f88036..00000000 --- a/preferences/migrations/0007_auto_20170824_2056.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-24 18:56 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0006_auto_20170824_0143")] - - operations = [ - migrations.AlterField( - model_name="assooption", - name="name", - field=models.CharField( - default="Association réseau de l'école machin", max_length=256 - ), - ) - ] diff --git a/preferences/migrations/0008_auto_20170824_2122.py b/preferences/migrations/0008_auto_20170824_2122.py deleted file mode 100644 index 26f2c785..00000000 --- a/preferences/migrations/0008_auto_20170824_2122.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-24 19:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0007_auto_20170824_2056")] - - operations = [ - migrations.RemoveField(model_name="assooption", name="adresse"), - migrations.AddField( - model_name="assooption", - name="adresse1", - field=models.CharField(default="1 Rue de exemple", max_length=128), - ), - migrations.AddField( - model_name="assooption", - name="adresse2", - field=models.CharField(default="94230 Cachan", max_length=128), - ), - migrations.AlterField( - model_name="assooption", - name="name", - field=models.CharField( - default="Association réseau école machin", max_length=256 - ), - ), - ] diff --git a/preferences/migrations/0009_assooption_utilisateur_asso.py b/preferences/migrations/0009_assooption_utilisateur_asso.py deleted file mode 100644 index 35e92885..00000000 --- a/preferences/migrations/0009_assooption_utilisateur_asso.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-24 19:35 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("preferences", "0008_auto_20170824_2122"), - ] - - operations = [ - migrations.AddField( - model_name="assooption", - name="utilisateur_asso", - field=models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to=settings.AUTH_USER_MODEL, - ), - ) - ] diff --git a/preferences/migrations/0010_auto_20170825_0459.py b/preferences/migrations/0010_auto_20170825_0459.py deleted file mode 100644 index f29ceefc..00000000 --- a/preferences/migrations/0010_auto_20170825_0459.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-25 02:59 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0009_assooption_utilisateur_asso")] - - operations = [ - migrations.CreateModel( - name="OptionalTopologie", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ) - ], - ), - migrations.CreateModel( - name="Vlan", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("vlan_id", models.IntegerField()), - ("comment", models.CharField(max_length=256)), - ], - ), - migrations.AddField( - model_name="optionaltopologie", - name="vlan_decision_nok", - field=models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="decision_nok", - to="preferences.Vlan", - ), - ), - migrations.AddField( - model_name="optionaltopologie", - name="vlan_decision_ok", - field=models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="decision_ok", - to="preferences.Vlan", - ), - ), - ] diff --git a/preferences/migrations/0011_auto_20170825_2307.py b/preferences/migrations/0011_auto_20170825_2307.py deleted file mode 100644 index 057721c7..00000000 --- a/preferences/migrations/0011_auto_20170825_2307.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-25 21:07 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0010_auto_20170825_0459")] - - operations = [ - migrations.AlterField( - model_name="optionaltopologie", - name="vlan_decision_nok", - field=models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="decision_nok", - to="machines.Vlan", - ), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="vlan_decision_ok", - field=models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="decision_ok", - to="machines.Vlan", - ), - ), - migrations.DeleteModel(name="Vlan"), - ] diff --git a/preferences/migrations/0012_generaloption_req_expire_hrs.py b/preferences/migrations/0012_generaloption_req_expire_hrs.py deleted file mode 100644 index 82b138f7..00000000 --- a/preferences/migrations/0012_generaloption_req_expire_hrs.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-26 13:30 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0011_auto_20170825_2307")] - - operations = [ - migrations.AddField( - model_name="generaloption", - name="req_expire_hrs", - field=models.IntegerField(default=48), - ) - ] diff --git a/preferences/migrations/0013_generaloption_site_name.py b/preferences/migrations/0013_generaloption_site_name.py deleted file mode 100644 index 6c5c919b..00000000 --- a/preferences/migrations/0013_generaloption_site_name.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-26 13:40 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0012_generaloption_req_expire_hrs")] - - operations = [ - migrations.AddField( - model_name="generaloption", - name="site_name", - field=models.CharField(default="Re2o", max_length=32), - ) - ] diff --git a/preferences/migrations/0014_generaloption_email_from.py b/preferences/migrations/0014_generaloption_email_from.py deleted file mode 100644 index cf867e34..00000000 --- a/preferences/migrations/0014_generaloption_email_from.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-26 13:58 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0013_generaloption_site_name")] - - operations = [ - migrations.AddField( - model_name="generaloption", - name="email_from", - field=models.EmailField(default="www-data@serveur.net", max_length=254), - ) - ] diff --git a/preferences/migrations/0015_optionaltopologie_radius_general_policy.py b/preferences/migrations/0015_optionaltopologie_radius_general_policy.py deleted file mode 100644 index 3e3ea4b8..00000000 --- a/preferences/migrations/0015_optionaltopologie_radius_general_policy.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-02 13:16 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0014_generaloption_email_from")] - - operations = [ - migrations.AddField( - model_name="optionaltopologie", - name="radius_general_policy", - field=models.CharField( - choices=[ - ("MACHINE", "Sur le vlan de la plage ip machine"), - ("DEFINED", "Prédéfini"), - ], - default="DEFINED", - max_length=32, - ), - ) - ] diff --git a/preferences/migrations/0016_auto_20170902_1520.py b/preferences/migrations/0016_auto_20170902_1520.py deleted file mode 100644 index 5d234e2c..00000000 --- a/preferences/migrations/0016_auto_20170902_1520.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-02 13:20 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0015_optionaltopologie_radius_general_policy")] - - operations = [ - migrations.AlterField( - model_name="optionaltopologie", - name="radius_general_policy", - field=models.CharField( - choices=[ - ("MACHINE", "Sur le vlan de la plage ip machine"), - ( - "DEFINED", - 'Prédéfini dans "Vlan où placer les machines après acceptation RADIUS"', - ), - ], - default="DEFINED", - max_length=32, - ), - ) - ] diff --git a/preferences/migrations/0017_mailmessageoption.py b/preferences/migrations/0017_mailmessageoption.py deleted file mode 100644 index 26103d7f..00000000 --- a/preferences/migrations/0017_mailmessageoption.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-08 20:17 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0016_auto_20170902_1520")] - - operations = [ - migrations.CreateModel( - name="MailMessageOption", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("welcome_mail_fr", models.TextField(default="")), - ("welcome_mail_en", models.TextField(default="")), - ], - ) - ] diff --git a/preferences/migrations/0018_optionaltopologie_mac_autocapture.py b/preferences/migrations/0018_optionaltopologie_mac_autocapture.py deleted file mode 100644 index 62c44573..00000000 --- a/preferences/migrations/0018_optionaltopologie_mac_autocapture.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-10 16:16 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0017_mailmessageoption")] - - operations = [ - migrations.AddField( - model_name="optionaltopologie", - name="mac_autocapture", - field=models.BooleanField(default=False), - ) - ] diff --git a/preferences/migrations/0019_remove_optionaltopologie_mac_autocapture.py b/preferences/migrations/0019_remove_optionaltopologie_mac_autocapture.py deleted file mode 100644 index f446a74a..00000000 --- a/preferences/migrations/0019_remove_optionaltopologie_mac_autocapture.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-14 16:11 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0018_optionaltopologie_mac_autocapture")] - - operations = [ - migrations.RemoveField(model_name="optionaltopologie", name="mac_autocapture") - ] diff --git a/preferences/migrations/0020_optionalmachine_ipv6.py b/preferences/migrations/0020_optionalmachine_ipv6.py deleted file mode 100644 index 66758c20..00000000 --- a/preferences/migrations/0020_optionalmachine_ipv6.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-02 16:14 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0019_remove_optionaltopologie_mac_autocapture")] - - operations = [ - migrations.AddField( - model_name="optionalmachine", - name="ipv6", - field=models.BooleanField(default=False), - ) - ] diff --git a/preferences/migrations/0021_auto_20171015_1741.py b/preferences/migrations/0021_auto_20171015_1741.py deleted file mode 100644 index c3100249..00000000 --- a/preferences/migrations/0021_auto_20171015_1741.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-15 15:41 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0020_optionalmachine_ipv6")] - - operations = [ - migrations.AlterField( - model_name="optionaltopologie", - name="radius_general_policy", - field=models.CharField( - choices=[ - ("MACHINE", "Sur le vlan de la plage ip machine"), - ( - "DEFINED", - 'Prédéfini dans "Vlan où placer les machines après acceptation RADIUS"', - ), - ], - default="DEFINED", - max_length=32, - ), - ) - ] diff --git a/preferences/migrations/0022_auto_20171015_1758.py b/preferences/migrations/0022_auto_20171015_1758.py deleted file mode 100644 index a0173f2c..00000000 --- a/preferences/migrations/0022_auto_20171015_1758.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-15 15:58 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0021_auto_20171015_1741")] - - operations = [ - migrations.AlterField( - model_name="optionaltopologie", - name="radius_general_policy", - field=models.CharField( - choices=[ - ("MACHINE", "Sur le vlan de la plage ip machine"), - ( - "DEFINED", - 'Prédéfini dans "Vlan où placer les machines après acceptation RADIUS"', - ), - ], - default="DEFINED", - max_length=32, - ), - ) - ] diff --git a/preferences/migrations/0023_auto_20171015_2033.py b/preferences/migrations/0023_auto_20171015_2033.py deleted file mode 100644 index bb210bcb..00000000 --- a/preferences/migrations/0023_auto_20171015_2033.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-15 18:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0022_auto_20171015_1758")] - - operations = [ - migrations.AlterField( - model_name="optionaltopologie", - name="radius_general_policy", - field=models.CharField( - choices=[ - ("MACHINE", "Sur le vlan de la plage ip machine"), - ( - "DEFINED", - 'Prédéfini dans "Vlan où placer les machines après acceptation RADIUS"', - ), - ], - default="DEFINED", - max_length=32, - ), - ) - ] diff --git a/preferences/migrations/0024_optionaluser_all_can_create.py b/preferences/migrations/0024_optionaluser_all_can_create.py deleted file mode 100644 index 14a0a531..00000000 --- a/preferences/migrations/0024_optionaluser_all_can_create.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-11-21 04:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0023_auto_20171015_2033")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="all_can_create", - field=models.BooleanField( - default=False, help_text="Tous les users peuvent en créer d'autres" - ), - ) - ] diff --git a/preferences/migrations/0025_auto_20171231_2142.py b/preferences/migrations/0025_auto_20171231_2142.py deleted file mode 100644 index e90b9487..00000000 --- a/preferences/migrations/0025_auto_20171231_2142.py +++ /dev/null @@ -1,65 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 20:42 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0024_optionaluser_all_can_create")] - - operations = [ - migrations.AlterModelOptions( - name="assooption", - options={ - "permissions": (("view_assooption", "Peut voir les options de l'asso"),) - }, - ), - migrations.AlterModelOptions( - name="generaloption", - options={ - "permissions": ( - ("view_generaloption", "Peut voir les options générales"), - ) - }, - ), - migrations.AlterModelOptions( - name="mailmessageoption", - options={ - "permissions": ( - ("view_mailmessageoption", "Peut voir les options de mail"), - ) - }, - ), - migrations.AlterModelOptions( - name="optionalmachine", - options={ - "permissions": ( - ("view_optionalmachine", "Peut voir les options de machine"), - ) - }, - ), - migrations.AlterModelOptions( - name="optionaltopologie", - options={ - "permissions": ( - ("view_optionaltopologie", "Peut voir les options de topologie"), - ) - }, - ), - migrations.AlterModelOptions( - name="optionaluser", - options={ - "permissions": ( - ("view_optionaluser", "Peut voir les options de l'user"), - ) - }, - ), - migrations.AlterModelOptions( - name="service", - options={ - "permissions": (("view_service", "Peut voir les options de service"),) - }, - ), - ] diff --git a/preferences/migrations/0025_generaloption_general_message.py b/preferences/migrations/0025_generaloption_general_message.py deleted file mode 100644 index 042ad2ff..00000000 --- a/preferences/migrations/0025_generaloption_general_message.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-16 02:38 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0024_optionaluser_all_can_create")] - - operations = [ - migrations.AddField( - model_name="generaloption", - name="general_message", - field=models.TextField( - default="", - help_text="Message général affiché sur le site (maintenance, etc", - ), - ) - ] diff --git a/preferences/migrations/0026_auto_20171216_0401.py b/preferences/migrations/0026_auto_20171216_0401.py deleted file mode 100644 index c5dc4d65..00000000 --- a/preferences/migrations/0026_auto_20171216_0401.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-16 03:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0025_generaloption_general_message")] - - operations = [ - migrations.AlterField( - model_name="generaloption", - name="general_message", - field=models.TextField( - blank=True, - default="", - help_text="Message général affiché sur le site (maintenance, etc", - ), - ) - ] diff --git a/preferences/migrations/0027_merge_20180106_2019.py b/preferences/migrations/0027_merge_20180106_2019.py deleted file mode 100644 index d2aefe50..00000000 --- a/preferences/migrations/0027_merge_20180106_2019.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-06 19:19 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0026_auto_20171216_0401"), - ] - - operations = [] diff --git a/preferences/migrations/0028_assooption_description.py b/preferences/migrations/0028_assooption_description.py deleted file mode 100644 index ad73f11b..00000000 --- a/preferences/migrations/0028_assooption_description.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-08 14:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0043_optionalmachine_create_machine"), - ] - - operations = [ - migrations.AddField( - model_name="assooption", - name="description", - field=models.TextField(default=""), - ) - ] diff --git a/preferences/migrations/0028_auto_20180111_1129.py b/preferences/migrations/0028_auto_20180111_1129.py deleted file mode 100644 index 08d75b37..00000000 --- a/preferences/migrations/0028_auto_20180111_1129.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-11 10:29 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0027_merge_20180106_2019")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="max_recharge", - field=models.DecimalField(decimal_places=2, default=100, max_digits=5), - ) - ] diff --git a/preferences/migrations/0028_auto_20180128_2203.py b/preferences/migrations/0028_auto_20180128_2203.py deleted file mode 100644 index 582e7eb0..00000000 --- a/preferences/migrations/0028_auto_20180128_2203.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-28 21:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0027_merge_20180106_2019")] - - operations = [ - migrations.RemoveField(model_name="optionalmachine", name="ipv6"), - migrations.AddField( - model_name="optionalmachine", - name="ipv6_mode", - field=models.CharField( - choices=[ - ("SLAAC", "Autoconfiguration par RA"), - ("DHCPV6", "Attribution des ip par dhcpv6"), - ("DISABLED", "Désactivé"), - ], - default="DISABLED", - max_length=32, - ), - ), - ] diff --git a/preferences/migrations/0029_auto_20180111_1134.py b/preferences/migrations/0029_auto_20180111_1134.py deleted file mode 100644 index 556c332b..00000000 --- a/preferences/migrations/0029_auto_20180111_1134.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-11 10:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0028_auto_20180111_1129")] - - operations = [ - migrations.AddField( - model_name="assooption", - name="payment", - field=models.CharField( - choices=[("NONE", "NONE"), ("COMNPAY", "COMNPAY")], - default="NONE", - max_length=255, - ), - ) - ] diff --git a/preferences/migrations/0029_auto_20180318_0213.py b/preferences/migrations/0029_auto_20180318_0213.py deleted file mode 100644 index 4252e839..00000000 --- a/preferences/migrations/0029_auto_20180318_0213.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-18 01:13 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0028_assooption_description")] - - operations = [ - migrations.AlterField( - model_name="assooption", - name="description", - field=models.TextField(blank=True, null=True), - ) - ] diff --git a/preferences/migrations/0029_auto_20180318_1005.py b/preferences/migrations/0029_auto_20180318_1005.py deleted file mode 100644 index 8d202955..00000000 --- a/preferences/migrations/0029_auto_20180318_1005.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-18 09:05 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0028_assooption_description")] - - operations = [ - migrations.AlterField( - model_name="assooption", - name="payment_id", - field=models.CharField(blank=True, default="", max_length=255), - ) - ] diff --git a/preferences/migrations/0030_auto_20180111_2346.py b/preferences/migrations/0030_auto_20180111_2346.py deleted file mode 100644 index 7e23e2ff..00000000 --- a/preferences/migrations/0030_auto_20180111_2346.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-11 22:46 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0029_auto_20180111_1134")] - - operations = [ - migrations.RemoveField(model_name="optionaluser", name="max_recharge"), - migrations.AddField( - model_name="optionaluser", - name="max_solde", - field=models.DecimalField(decimal_places=2, default=50, max_digits=5), - ), - ] diff --git a/preferences/migrations/0030_merge_20180320_1419.py b/preferences/migrations/0030_merge_20180320_1419.py deleted file mode 100644 index c13777a0..00000000 --- a/preferences/migrations/0030_merge_20180320_1419.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-20 13:19 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0029_auto_20180318_0213"), - ] - - operations = [] diff --git a/preferences/migrations/0031_auto_20180323_0218.py b/preferences/migrations/0031_auto_20180323_0218.py deleted file mode 100644 index 9d767700..00000000 --- a/preferences/migrations/0031_auto_20180323_0218.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-23 01:18 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0030_merge_20180320_1419")] - - operations = [ - migrations.AlterField( - model_name="generaloption", - name="email_from", - field=models.EmailField(default="www-data@example.com", max_length=254), - ) - ] diff --git a/preferences/migrations/0031_optionaluser_self_adhesion.py b/preferences/migrations/0031_optionaluser_self_adhesion.py deleted file mode 100644 index a6ce5ecf..00000000 --- a/preferences/migrations/0031_optionaluser_self_adhesion.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-12 11:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0030_auto_20180111_2346")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="self_adhesion", - field=models.BooleanField( - default=False, - help_text="Un nouvel utilisateur peut se créer son compte sur re2o", - ), - ) - ] diff --git a/preferences/migrations/0032_optionaluser_min_online_payment.py b/preferences/migrations/0032_optionaluser_min_online_payment.py deleted file mode 100644 index 910d98dd..00000000 --- a/preferences/migrations/0032_optionaluser_min_online_payment.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-13 16:43 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0031_optionaluser_self_adhesion")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="min_online_payment", - field=models.DecimalField(decimal_places=2, default=10, max_digits=5), - ) - ] diff --git a/preferences/migrations/0032_optionaluser_shell_default.py b/preferences/migrations/0032_optionaluser_shell_default.py deleted file mode 100644 index 268fed6a..00000000 --- a/preferences/migrations/0032_optionaluser_shell_default.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-24 19:22 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("users", "0070_auto_20180324_1906"), - ("preferences", "0031_auto_20180323_0218"), - ] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="shell_default", - field=models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="users.ListShell", - ), - ) - ] diff --git a/preferences/migrations/0033_accueiloption.py b/preferences/migrations/0033_accueiloption.py deleted file mode 100644 index 7722dc13..00000000 --- a/preferences/migrations/0033_accueiloption.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-16 02:35 -from __future__ import unicode_literals - -from django.db import migrations, models -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0032_optionaluser_shell_default")] - - operations = [ - migrations.CreateModel( - name="AccueilOption", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "facebook_url", - models.URLField( - blank=True, help_text="Url du compte facebook", null=True - ), - ), - ( - "twitter_url", - models.URLField( - blank=True, help_text="Url du compte twitter", null=True - ), - ), - ( - "twitter_account_name", - models.CharField( - blank=True, - help_text="Nom du compte à afficher", - max_length=32, - null=True, - ), - ), - ], - options={ - "permissions": ( - ("view_accueiloption", "Peut voir les options de l'accueil"), - ) - }, - bases=(re2o.mixins.AclMixin, models.Model), - ) - ] diff --git a/preferences/migrations/0033_generaloption_gtu_sum_up.py b/preferences/migrations/0033_generaloption_gtu_sum_up.py deleted file mode 100644 index 81013c39..00000000 --- a/preferences/migrations/0033_generaloption_gtu_sum_up.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-14 19:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0032_optionaluser_min_online_payment")] - - operations = [ - migrations.AddField( - model_name="generaloption", - name="GTU_sum_up", - field=models.TextField(blank=True, default="", help_text="Résumé des CGU"), - ) - ] diff --git a/preferences/migrations/0034_auto_20180114_2025.py b/preferences/migrations/0034_auto_20180114_2025.py deleted file mode 100644 index 96742c6c..00000000 --- a/preferences/migrations/0034_auto_20180114_2025.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-14 19:25 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0033_generaloption_gtu_sum_up")] - - operations = [ - migrations.AddField( - model_name="generaloption", - name="GTU", - field=models.FileField(default="", upload_to="GTU"), - ), - migrations.AlterField( - model_name="generaloption", - name="GTU_sum_up", - field=models.TextField(blank=True, default=""), - ), - ] diff --git a/preferences/migrations/0034_auto_20180416_1120.py b/preferences/migrations/0034_auto_20180416_1120.py deleted file mode 100644 index 14b50f1e..00000000 --- a/preferences/migrations/0034_auto_20180416_1120.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-16 16:20 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0033_accueiloption")] - - operations = [ - migrations.RenameModel(old_name="AccueilOption", new_name="HomeOption"), - migrations.AlterModelOptions( - name="homeoption", - options={ - "permissions": ( - ("view_homeoption", "Peut voir les options de l'accueil"), - ) - }, - ), - ] diff --git a/preferences/migrations/0035_auto_20180114_2132.py b/preferences/migrations/0035_auto_20180114_2132.py deleted file mode 100644 index 0e851954..00000000 --- a/preferences/migrations/0035_auto_20180114_2132.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-14 20:32 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0034_auto_20180114_2025")] - - operations = [ - migrations.AlterField( - model_name="generaloption", - name="GTU", - field=models.FileField(default="", upload_to="/var/www/static/"), - ) - ] diff --git a/preferences/migrations/0035_optionaluser_allow_self_subscription.py b/preferences/migrations/0035_optionaluser_allow_self_subscription.py deleted file mode 100644 index 8bc879b3..00000000 --- a/preferences/migrations/0035_optionaluser_allow_self_subscription.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-06-17 15:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0034_auto_20180416_1120")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="allow_self_subscription", - field=models.BooleanField( - default=False, - help_text="Autoriser les utilisateurs à cotiser par eux mêmes via les moyens de paiement permettant l'auto-cotisation.", - ), - ) - ] diff --git a/preferences/migrations/0036_auto_20180114_2141.py b/preferences/migrations/0036_auto_20180114_2141.py deleted file mode 100644 index 1d67f357..00000000 --- a/preferences/migrations/0036_auto_20180114_2141.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-14 20:41 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0035_auto_20180114_2132")] - - operations = [ - migrations.AlterField( - model_name="generaloption", - name="GTU", - field=models.FileField(default="", upload_to=""), - ) - ] diff --git a/preferences/migrations/0037_auto_20180114_2156.py b/preferences/migrations/0037_auto_20180114_2156.py deleted file mode 100644 index d8e65a87..00000000 --- a/preferences/migrations/0037_auto_20180114_2156.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-14 20:56 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0036_auto_20180114_2141")] - - operations = [ - migrations.AlterField( - model_name="generaloption", - name="GTU", - field=models.FileField(default="", null=True, upload_to=""), - ) - ] diff --git a/preferences/migrations/0038_auto_20180114_2209.py b/preferences/migrations/0038_auto_20180114_2209.py deleted file mode 100644 index 4f2e4913..00000000 --- a/preferences/migrations/0038_auto_20180114_2209.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-14 21:09 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0037_auto_20180114_2156")] - - operations = [ - migrations.AlterField( - model_name="generaloption", - name="GTU", - field=models.FileField(blank=True, default="", null=True, upload_to=""), - ) - ] diff --git a/preferences/migrations/0039_auto_20180115_0003.py b/preferences/migrations/0039_auto_20180115_0003.py deleted file mode 100644 index 577a4c2d..00000000 --- a/preferences/migrations/0039_auto_20180115_0003.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-14 23:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0038_auto_20180114_2209")] - - operations = [ - migrations.AddField( - model_name="assooption", - name="payment_id", - field=models.CharField(max_length=255, null=True), - ) - ] diff --git a/preferences/migrations/0040_auto_20180129_1745.py b/preferences/migrations/0040_auto_20180129_1745.py deleted file mode 100644 index 55f25633..00000000 --- a/preferences/migrations/0040_auto_20180129_1745.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-29 16:45 -from __future__ import unicode_literals - -from django.db import migrations, models - -try: - import preferences.aes_field as aes_field -except ImportError: - import re2o.aes_field as aes_field - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0039_auto_20180115_0003")] - - operations = [ - migrations.AddField( - model_name="assooption", - name="payment_pass", - field=aes_field.AESEncryptedField(blank=True, max_length=255, null=True), - ), - migrations.AlterField( - model_name="assooption", - name="payment_id", - field=models.CharField(default="", max_length=255), - ), - ] diff --git a/preferences/migrations/0041_merge_20180130_0052.py b/preferences/migrations/0041_merge_20180130_0052.py deleted file mode 100644 index 0a4d3daa..00000000 --- a/preferences/migrations/0041_merge_20180130_0052.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-29 23:52 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0040_auto_20180129_1745"), - ] - - operations = [] diff --git a/preferences/migrations/0042_auto_20180222_1743.py b/preferences/migrations/0042_auto_20180222_1743.py deleted file mode 100644 index f6b7f3f6..00000000 --- a/preferences/migrations/0042_auto_20180222_1743.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-02-22 16:43 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0041_merge_20180130_0052")] - - operations = [ - migrations.RemoveField(model_name="optionaluser", name="all_can_create"), - migrations.AddField( - model_name="optionaluser", - name="all_can_create_adherent", - field=models.BooleanField( - default=False, help_text="Les users peuvent créer d'autres adhérents" - ), - ), - migrations.AddField( - model_name="optionaluser", - name="all_can_create_club", - field=models.BooleanField( - default=False, help_text="Les users peuvent créer un club" - ), - ), - ] diff --git a/preferences/migrations/0043_optionalmachine_create_machine.py b/preferences/migrations/0043_optionalmachine_create_machine.py deleted file mode 100644 index b62e7c09..00000000 --- a/preferences/migrations/0043_optionalmachine_create_machine.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-02-28 13:40 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0042_auto_20180222_1743")] - - operations = [ - migrations.AddField( - model_name="optionalmachine", - name="create_machine", - field=models.BooleanField( - default=True, help_text="Permet à l'user de créer une machine" - ), - ) - ] diff --git a/preferences/migrations/0044_remove_payment_pass.py b/preferences/migrations/0044_remove_payment_pass.py deleted file mode 100644 index b9f51ce8..00000000 --- a/preferences/migrations/0044_remove_payment_pass.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-07-05 13:40 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0035_optionaluser_allow_self_subscription")] - - operations = [migrations.RemoveField(model_name="assooption", name="payment_pass")] diff --git a/preferences/migrations/0045_remove_unused_payment_fields.py b/preferences/migrations/0045_remove_unused_payment_fields.py deleted file mode 100644 index 2ed40a42..00000000 --- a/preferences/migrations/0045_remove_unused_payment_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-07-05 13:40 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("preferences", "0044_remove_payment_pass"), - ("cotisations", "0030_custom_payment"), - ] - - operations = [ - migrations.RemoveField(model_name="assooption", name="payment"), - migrations.RemoveField(model_name="assooption", name="payment_id"), - migrations.RemoveField( - model_name="optionaluser", name="allow_self_subscription" - ), - migrations.RemoveField(model_name="optionaluser", name="max_solde"), - migrations.RemoveField(model_name="optionaluser", name="min_online_payment"), - migrations.RemoveField(model_name="optionaluser", name="solde_negatif"), - migrations.RemoveField(model_name="optionaluser", name="user_solde"), - ] diff --git a/preferences/migrations/0046_optionaluser_mail_extension.py b/preferences/migrations/0046_optionaluser_mail_extension.py deleted file mode 100644 index ff6f27a1..00000000 --- a/preferences/migrations/0046_optionaluser_mail_extension.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-06-26 19:31 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0045_remove_unused_payment_fields")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="local_email_accounts_enabled", - field=models.BooleanField( - default=False, help_text="Enable local email accounts for users" - ), - ), - migrations.AddField( - model_name="optionaluser", - name="local_email_domain", - field=models.CharField( - default="@example.org", - help_text="Domain to use for local email accounts", - max_length=32, - ), - ), - migrations.AddField( - model_name="optionaluser", - name="max_email_address", - field=models.IntegerField( - default=15, - help_text="Maximum number of local email address for a standard user", - ), - ), - ] diff --git a/preferences/migrations/0047_mailcontact.py b/preferences/migrations/0047_mailcontact.py deleted file mode 100644 index f6d84c47..00000000 --- a/preferences/migrations/0047_mailcontact.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-06-30 15:27 -from __future__ import unicode_literals - -from django.db import migrations, models -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0046_optionaluser_mail_extension")] - - operations = [ - migrations.CreateModel( - name="MailContact", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "address", - models.EmailField( - default="contact@example.org", - help_text="Contact email adress", - max_length=254, - ), - ), - ( - "commentary", - models.CharField( - blank=True, - help_text="Description of the associated email adress.", - max_length=256, - null=True, - ), - ), - ], - options={"permissions": (("view_mailcontact", "Can see contact email"),)}, - bases=(re2o.mixins.AclMixin, models.Model), - ) - ] diff --git a/preferences/migrations/0048_auto_20180811_1515.py b/preferences/migrations/0048_auto_20180811_1515.py deleted file mode 100644 index 24b8ec81..00000000 --- a/preferences/migrations/0048_auto_20180811_1515.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-11 13:15 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0047_mailcontact")] - - operations = [ - migrations.RenameField( - model_name="generaloption", - old_name="general_message", - new_name="general_message_fr", - ), - migrations.AddField( - model_name="generaloption", - name="general_message_en", - field=models.TextField( - blank=True, - default="", - help_text="General message displayed on the English version of the website.", - ), - ), - migrations.AlterField( - model_name="generaloption", - name="general_message_fr", - field=models.TextField( - blank=True, - default="", - help_text="Message général affiché sur le site (maintenance, etc)", - ), - ), - ] diff --git a/preferences/migrations/0049_optionaluser_self_change_shell.py b/preferences/migrations/0049_optionaluser_self_change_shell.py deleted file mode 100644 index 65ee58b9..00000000 --- a/preferences/migrations/0049_optionaluser_self_change_shell.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-13 17:18 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0048_auto_20180811_1515")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="self_change_shell", - field=models.BooleanField( - default=False, help_text="Users can change their shell" - ), - ) - ] diff --git a/preferences/migrations/0050_auto_20180818_1329.py b/preferences/migrations/0050_auto_20180818_1329.py deleted file mode 100644 index eb783d63..00000000 --- a/preferences/migrations/0050_auto_20180818_1329.py +++ /dev/null @@ -1,230 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-18 11:29 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0049_optionaluser_self_change_shell")] - - operations = [ - migrations.AlterModelOptions( - name="assooption", - options={ - "permissions": ( - ("view_assooption", "Can view the organisation options"), - ), - "verbose_name": "organisation options", - }, - ), - migrations.AlterModelOptions( - name="generaloption", - options={ - "permissions": ( - ("view_generaloption", "Can view the general options"), - ), - "verbose_name": "general options", - }, - ), - migrations.AlterModelOptions( - name="homeoption", - options={ - "permissions": (("view_homeoption", "Can view the homepage options"),), - "verbose_name": "homepage options", - }, - ), - migrations.AlterModelOptions( - name="mailcontact", - options={ - "permissions": ( - ("view_mailcontact", "Can view a contact email address object"), - ), - "verbose_name": "contact email address", - "verbose_name_plural": "contact email addresses", - }, - ), - migrations.AlterModelOptions( - name="mailmessageoption", - options={ - "permissions": ( - ("view_mailmessageoption", "Can view the email message options"), - ), - "verbose_name": "email message options", - }, - ), - migrations.AlterModelOptions( - name="optionalmachine", - options={ - "permissions": ( - ("view_optionalmachine", "Can view the machine options"), - ), - "verbose_name": "machine options", - }, - ), - migrations.AlterModelOptions( - name="optionaltopologie", - options={ - "permissions": ( - ("view_optionaltopologie", "Can view the topology options"), - ), - "verbose_name": "topology options", - }, - ), - migrations.AlterModelOptions( - name="optionaluser", - options={ - "permissions": (("view_optionaluser", "Can view the user options"),), - "verbose_name": "user options", - }, - ), - migrations.AlterModelOptions( - name="service", - options={ - "permissions": (("view_service", "Can view the service options"),), - "verbose_name": "service", - "verbose_name_plural": "services", - }, - ), - migrations.AlterField( - model_name="assooption", - name="adresse1", - field=models.CharField(default="Threadneedle Street", max_length=128), - ), - migrations.AlterField( - model_name="assooption", - name="adresse2", - field=models.CharField(default="London EC2R 8AH", max_length=128), - ), - migrations.AlterField( - model_name="assooption", - name="name", - field=models.CharField( - default="Networking organisation school Something", max_length=256 - ), - ), - migrations.AlterField( - model_name="assooption", - name="pseudo", - field=models.CharField(default="Organisation", max_length=32), - ), - migrations.AlterField( - model_name="generaloption", - name="general_message_en", - field=models.TextField( - blank=True, - default="", - help_text="General message displayed on the English version of the website (e.g. in case of maintenance)", - ), - ), - migrations.AlterField( - model_name="generaloption", - name="general_message_fr", - field=models.TextField( - blank=True, - default="", - help_text="General message displayed on the French version of the website (e.g. in case of maintenance)", - ), - ), - migrations.AlterField( - model_name="homeoption", - name="facebook_url", - field=models.URLField(blank=True, null=True), - ), - migrations.AlterField( - model_name="homeoption", - name="twitter_account_name", - field=models.CharField(blank=True, max_length=32, null=True), - ), - migrations.AlterField( - model_name="homeoption", - name="twitter_url", - field=models.URLField(blank=True, null=True), - ), - migrations.AlterField( - model_name="mailcontact", - name="address", - field=models.EmailField( - default="contact@example.org", - help_text="Contact email address", - max_length=254, - ), - ), - migrations.AlterField( - model_name="mailcontact", - name="commentary", - field=models.CharField( - blank=True, - help_text="Description of the associated email address.", - max_length=256, - null=True, - ), - ), - migrations.AlterField( - model_name="optionalmachine", - name="create_machine", - field=models.BooleanField(default=True), - ), - migrations.AlterField( - model_name="optionalmachine", - name="ipv6_mode", - field=models.CharField( - choices=[ - ("SLAAC", "Autoconfiguration by RA"), - ("DHCPV6", "IP addresses assigning by DHCPv6"), - ("DISABLED", "Disabled"), - ], - default="DISABLED", - max_length=32, - ), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="radius_general_policy", - field=models.CharField( - choices=[ - ("MACHINE", "On the IP range's VLAN of the machine"), - ("DEFINED", "Preset in 'VLAN for machines accepted by RADIUS'"), - ], - default="DEFINED", - max_length=32, - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="all_can_create_adherent", - field=models.BooleanField( - default=False, help_text="Users can create a member" - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="all_can_create_club", - field=models.BooleanField( - default=False, help_text="Users can create a club" - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="max_email_address", - field=models.IntegerField( - default=15, - help_text="Maximum number of local email addresses for a standard user", - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="self_adhesion", - field=models.BooleanField( - default=False, help_text="A new user can create their account on Re2o" - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="self_change_shell", - field=models.BooleanField( - default=False, help_text="Users can edit their shell" - ), - ), - ] diff --git a/preferences/migrations/0051_auto_20180919_2225.py b/preferences/migrations/0051_auto_20180919_2225.py deleted file mode 100644 index c570e147..00000000 --- a/preferences/migrations/0051_auto_20180919_2225.py +++ /dev/null @@ -1,209 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-09-19 20:25 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.aes_field -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0095_auto_20180919_2225"), - ("preferences", "0050_auto_20180818_1329"), - ] - - operations = [ - migrations.CreateModel( - name="RadiusKey", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "radius_key", - re2o.aes_field.AESEncryptedField( - help_text="Clef radius", max_length=255 - ), - ), - ( - "comment", - models.CharField( - blank=True, - help_text="Commentaire de cette clef", - max_length=255, - null=True, - ), - ), - ( - "default_switch", - models.BooleanField( - default=True, - help_text="Clef par défaut des switchs", - unique=True, - ), - ), - ], - options={ - "permissions": (("view_radiuskey", "Peut voir un objet radiuskey"),) - }, - bases=(re2o.mixins.AclMixin, models.Model), - ), - migrations.CreateModel( - name="Reminder", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "days", - models.IntegerField( - default=7, - help_text="Délais entre le mail et la fin d'adhésion", - unique=True, - ), - ), - ( - "message", - models.CharField( - blank=True, - default="", - help_text="Message affiché spécifiquement pour ce rappel", - max_length=255, - null=True, - ), - ), - ], - options={ - "permissions": (("view_reminder", "Peut voir un objet reminder"),) - }, - bases=(re2o.mixins.AclMixin, models.Model), - ), - migrations.CreateModel( - name="SwitchManagementCred", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "management_id", - models.CharField(help_text="Login du switch", max_length=63), - ), - ( - "management_pass", - re2o.aes_field.AESEncryptedField( - help_text="Mot de passe", max_length=63 - ), - ), - ( - "default_switch", - models.BooleanField( - default=True, - help_text="Creds par défaut des switchs", - unique=True, - ), - ), - ], - options={ - "permissions": ( - ( - "view_switchmanagementcred", - "Peut voir un objet switchmanagementcred", - ), - ) - }, - bases=(re2o.mixins.AclMixin, models.Model), - ), - migrations.AddField( - model_name="optionaltopologie", - name="sftp_login", - field=models.CharField( - blank=True, help_text="Login sftp des switchs", max_length=32, null=True - ), - ), - migrations.AddField( - model_name="optionaltopologie", - name="sftp_pass", - field=re2o.aes_field.AESEncryptedField( - blank=True, help_text="Mot de passe sftp", max_length=63, null=True - ), - ), - migrations.AddField( - model_name="optionaltopologie", - name="switchs_ip_type", - field=models.OneToOneField( - blank=True, - help_text="Plage d'ip de management des switchs", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="machines.IpType", - ), - ), - migrations.AddField( - model_name="optionaltopologie", - name="switchs_provision", - field=models.CharField( - choices=[("sftp", "sftp"), ("tftp", "tftp")], - default="tftp", - help_text="Mode de récupération des confs par les switchs", - max_length=32, - ), - ), - migrations.AddField( - model_name="optionaltopologie", - name="switchs_rest_management", - field=models.BooleanField( - default=False, help_text="Rest management, activé si provision auto" - ), - ), - migrations.AddField( - model_name="optionaltopologie", - name="switchs_web_management", - field=models.BooleanField( - default=False, - help_text="Web management, activé si provision automatique", - ), - ), - migrations.AddField( - model_name="optionaltopologie", - name="switchs_web_management_ssl", - field=models.BooleanField( - default=False, - help_text="Web management ssl. Assurez-vous que un certif est installé sur le switch !", - ), - ), - migrations.AlterField( - model_name="mailmessageoption", - name="welcome_mail_en", - field=models.TextField( - default="", help_text="Mail de bienvenue en anglais" - ), - ), - migrations.AlterField( - model_name="mailmessageoption", - name="welcome_mail_fr", - field=models.TextField( - default="", help_text="Mail de bienvenue en français" - ), - ), - ] diff --git a/preferences/migrations/0052_optionaluser_delete_notyetactive.py b/preferences/migrations/0052_optionaluser_delete_notyetactive.py deleted file mode 100644 index ec25f8d2..00000000 --- a/preferences/migrations/0052_optionaluser_delete_notyetactive.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-10-11 12:51 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0051_auto_20180919_2225")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="delete_notyetactive", - field=models.IntegerField( - default=15, - help_text="Inactive users will be deleted after this number of days", - ), - ) - ] diff --git a/preferences/migrations/0053_optionaluser_self_change_room.py b/preferences/migrations/0053_optionaluser_self_change_room.py deleted file mode 100644 index 43190c21..00000000 --- a/preferences/migrations/0053_optionaluser_self_change_room.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-10-14 22:14 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0052_optionaluser_delete_notyetactive")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="self_change_room", - field=models.BooleanField( - default=False, help_text="Users can edit their room" - ), - ) - ] diff --git a/preferences/migrations/0055_generaloption_main_site_url.py b/preferences/migrations/0055_generaloption_main_site_url.py deleted file mode 100644 index 6e4ba49d..00000000 --- a/preferences/migrations/0055_generaloption_main_site_url.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-11-14 16:46 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0053_optionaluser_self_change_room")] - - operations = [ - migrations.AddField( - model_name="generaloption", - name="main_site_url", - field=models.URLField(default="http://re2o.example.org", max_length=255), - ) - ] diff --git a/preferences/migrations/0056_1_radiusoption.py b/preferences/migrations/0056_1_radiusoption.py deleted file mode 100644 index 5b0c483f..00000000 --- a/preferences/migrations/0056_1_radiusoption.py +++ /dev/null @@ -1,189 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-10-13 14:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0095_auto_20180919_2225"), - ("preferences", "0055_generaloption_main_site_url"), - ] - - operations = [ - migrations.CreateModel( - name="RadiusOption", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "radius_general_policy", - models.CharField( - choices=[ - ("MACHINE", "On the IP range's VLAN of the machine"), - ( - "DEFINED", - "Preset in 'VLAN for machines accepted by RADIUS'", - ), - ], - default="DEFINED", - max_length=32, - ), - ), - ], - options={"verbose_name": "radius policies"}, - bases=(re2o.mixins.AclMixin, models.Model), - ), - migrations.AddField( - model_name="radiusoption", - name="banned_vlan", - field=models.ForeignKey( - blank=True, - help_text="Vlan for banned if not rejected.", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="banned_vlan", - to="machines.Vlan", - verbose_name="Banned Vlan", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="non_member_vlan", - field=models.ForeignKey( - blank=True, - help_text="Vlan for non members if not rejected.", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="non_member_vlan", - to="machines.Vlan", - verbose_name="Non member Vlan", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_machine_vlan", - field=models.ForeignKey( - blank=True, - help_text="Vlan for unknown machines if not rejected.", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="unknown_machine_vlan", - to="machines.Vlan", - verbose_name="Unknown machine Vlan", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_port_vlan", - field=models.ForeignKey( - blank=True, - help_text="Vlan for unknown ports if not rejected.", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="unknown_port_vlan", - to="machines.Vlan", - verbose_name="Unknown port Vlan", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_room_vlan", - field=models.ForeignKey( - blank=True, - help_text="Vlan for unknown room if not rejected.", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="unknown_room_vlan", - to="machines.Vlan", - verbose_name="Unknown room Vlan", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="banned", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for banned users.", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="non_member", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy non member users.", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_machine", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for unknown machines", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_port", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for unknown machines", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_room", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for machine connecting from unregistered room (relevant on ports with STRICT radius mode)", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="vlan_decision_ok", - field=models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="vlan_ok_option", - to="machines.Vlan", - ), - ), - ] diff --git a/preferences/migrations/0056_2_radiusoption.py b/preferences/migrations/0056_2_radiusoption.py deleted file mode 100644 index b753b7a3..00000000 --- a/preferences/migrations/0056_2_radiusoption.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-10-13 14:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -def create_radius_policy(apps, schema_editor): - OptionalTopologie = apps.get_model("preferences", "OptionalTopologie") - RadiusOption = apps.get_model("preferences", "RadiusOption") - - option, _ = OptionalTopologie.objects.get_or_create() - - radius_option = RadiusOption() - radius_option.radius_general_policy = option.radius_general_policy - radius_option.vlan_decision_ok = option.vlan_decision_ok - - radius_option.save() - - -def revert_radius(apps, schema_editor): - pass - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0095_auto_20180919_2225"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ] - - operations = [migrations.RunPython(create_radius_policy, revert_radius)] diff --git a/preferences/migrations/0056_3_radiusoption.py b/preferences/migrations/0056_3_radiusoption.py deleted file mode 100644 index ec99efd9..00000000 --- a/preferences/migrations/0056_3_radiusoption.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-10-13 14:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0095_auto_20180919_2225"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_2_radiusoption"), - ] - - operations = [ - migrations.RemoveField( - model_name="optionaltopologie", name="radius_general_policy" - ), - migrations.RemoveField( - model_name="optionaltopologie", name="vlan_decision_nok" - ), - migrations.RemoveField(model_name="optionaltopologie", name="vlan_decision_ok"), - ] diff --git a/preferences/migrations/0056_4_radiusoption.py b/preferences/migrations/0056_4_radiusoption.py deleted file mode 100644 index 57a08802..00000000 --- a/preferences/migrations/0056_4_radiusoption.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-12-04 13:57 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0056_3_radiusoption")] - - operations = [ - migrations.AlterField( - model_name="radiusoption", - name="unknown_port", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for unknown port", - ), - ) - ] diff --git a/preferences/migrations/0057_optionaluser_all_users_active.py b/preferences/migrations/0057_optionaluser_all_users_active.py deleted file mode 100644 index 9a236f2b..00000000 --- a/preferences/migrations/0057_optionaluser_all_users_active.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-05 17:15 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0056_4_radiusoption")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="all_users_active", - field=models.BooleanField( - default=False, - help_text="If True, all new created and connected users are active. If False, only when a valid registration has been paid", - ), - ) - ] diff --git a/preferences/migrations/0058_auto_20190108_1650.py b/preferences/migrations/0058_auto_20190108_1650.py deleted file mode 100644 index fe8e8fd1..00000000 --- a/preferences/migrations/0058_auto_20190108_1650.py +++ /dev/null @@ -1,363 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-08 22:50 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.aes_field - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0057_optionaluser_all_users_active")] - - operations = [ - migrations.AlterModelOptions( - name="radiuskey", - options={ - "permissions": (("view_radiuskey", "Can view a RADIUS key object"),), - "verbose_name": "RADIUS key", - "verbose_name_plural": "RADIUS keys", - }, - ), - migrations.AlterModelOptions( - name="radiusoption", - options={ - "verbose_name": "RADIUS policy", - "verbose_name_plural": "RADIUS policies", - }, - ), - migrations.AlterModelOptions( - name="reminder", - options={ - "permissions": (("view_reminder", "Can view a reminder object"),), - "verbose_name": "reminder", - "verbose_name_plural": "reminders", - }, - ), - migrations.AlterModelOptions( - name="switchmanagementcred", - options={ - "permissions": ( - ( - "view_switchmanagementcred", - "Can view a switch management credentials object", - ), - ), - "verbose_name": "switch management credentials", - }, - ), - migrations.AlterField( - model_name="mailmessageoption", - name="welcome_mail_en", - field=models.TextField(default="", help_text="Welcome email in English"), - ), - migrations.AlterField( - model_name="mailmessageoption", - name="welcome_mail_fr", - field=models.TextField(default="", help_text="Welcome email in French"), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="sftp_login", - field=models.CharField( - blank=True, - help_text="SFTP login for switches", - max_length=32, - null=True, - ), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="sftp_pass", - field=re2o.aes_field.AESEncryptedField( - blank=True, help_text="SFTP password", max_length=63, null=True - ), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="switchs_ip_type", - field=models.OneToOneField( - blank=True, - help_text="IP range for the management of switches", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="machines.IpType", - ), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="switchs_provision", - field=models.CharField( - choices=[("sftp", "sftp"), ("tftp", "tftp")], - default="tftp", - help_text="Provision of configuration mode for switches", - max_length=32, - ), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="switchs_rest_management", - field=models.BooleanField( - default=False, - help_text="REST management, activated in case of automatic provision", - ), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="switchs_web_management", - field=models.BooleanField( - default=False, - help_text="Web management, activated in case of automatic provision", - ), - ), - migrations.AlterField( - model_name="optionaltopologie", - name="switchs_web_management_ssl", - field=models.BooleanField( - default=False, - help_text="SSL web management, make sure that a certificate is installed on the switch", - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="all_can_create_adherent", - field=models.BooleanField( - default=False, help_text="Users can create a member." - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="all_can_create_club", - field=models.BooleanField( - default=False, help_text="Users can create a club." - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="all_users_active", - field=models.BooleanField( - default=False, - help_text="If True, all new created and connected users are active. If False, only when a valid registration has been paid.", - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="delete_notyetactive", - field=models.IntegerField( - default=15, - help_text="Not yet active users will be deleted after this number of days.", - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="local_email_accounts_enabled", - field=models.BooleanField( - default=False, help_text="Enable local email accounts for users." - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="max_email_address", - field=models.IntegerField( - default=15, - help_text="Maximum number of local email addresses for a standard user.", - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="self_adhesion", - field=models.BooleanField( - default=False, help_text="A new user can create their account on Re2o." - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="self_change_room", - field=models.BooleanField( - default=False, help_text="Users can edit their room." - ), - ), - migrations.AlterField( - model_name="optionaluser", - name="self_change_shell", - field=models.BooleanField( - default=False, help_text="Users can edit their shell." - ), - ), - migrations.AlterField( - model_name="radiuskey", - name="comment", - field=models.CharField( - blank=True, help_text="Comment for this key", max_length=255, null=True - ), - ), - migrations.AlterField( - model_name="radiuskey", - name="default_switch", - field=models.BooleanField( - default=True, help_text="Default key for switches", unique=True - ), - ), - migrations.AlterField( - model_name="radiuskey", - name="radius_key", - field=re2o.aes_field.AESEncryptedField( - help_text="RADIUS key", max_length=255 - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="banned", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for banned users", - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="banned_vlan", - field=models.ForeignKey( - blank=True, - help_text="VLAN for banned users if not rejected", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="banned_vlan", - to="machines.Vlan", - verbose_name="Banned users VLAN", - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="non_member", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for non members", - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="non_member_vlan", - field=models.ForeignKey( - blank=True, - help_text="VLAN for non members if not rejected", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="non_member_vlan", - to="machines.Vlan", - verbose_name="Non members VLAN", - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="unknown_machine_vlan", - field=models.ForeignKey( - blank=True, - help_text="VLAN for unknown machines if not rejected", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="unknown_machine_vlan", - to="machines.Vlan", - verbose_name="Unknown machines VLAN", - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="unknown_port", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for unknown ports", - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="unknown_port_vlan", - field=models.ForeignKey( - blank=True, - help_text="VLAN for unknown ports if not rejected", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="unknown_port_vlan", - to="machines.Vlan", - verbose_name="Unknown ports VLAN", - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="unknown_room", - field=models.CharField( - choices=[ - ("REJECT", "Reject the machine"), - ("SET_VLAN", "Place the machine on the VLAN"), - ], - default="REJECT", - max_length=32, - verbose_name="Policy for machines connecting from unregistered rooms (relevant on ports with STRICT RADIUS mode)", - ), - ), - migrations.AlterField( - model_name="radiusoption", - name="unknown_room_vlan", - field=models.ForeignKey( - blank=True, - help_text="VLAN for unknown rooms if not rejected", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="unknown_room_vlan", - to="machines.Vlan", - verbose_name="Unknown rooms VLAN", - ), - ), - migrations.AlterField( - model_name="reminder", - name="days", - field=models.IntegerField( - default=7, - help_text="Delay between the email and the membership's end", - unique=True, - ), - ), - migrations.AlterField( - model_name="reminder", - name="message", - field=models.CharField( - blank=True, - default="", - help_text="Message displayed specifically for this reminder", - max_length=255, - null=True, - ), - ), - migrations.AlterField( - model_name="switchmanagementcred", - name="default_switch", - field=models.BooleanField( - default=True, help_text="Default credentials for switches", unique=True - ), - ), - migrations.AlterField( - model_name="switchmanagementcred", - name="management_id", - field=models.CharField(help_text="Switch login", max_length=63), - ), - migrations.AlterField( - model_name="switchmanagementcred", - name="management_pass", - field=re2o.aes_field.AESEncryptedField(help_text="Password", max_length=63), - ), - ] diff --git a/preferences/migrations/0059_auto_20190120_1739.py b/preferences/migrations/0059_auto_20190120_1739.py deleted file mode 100644 index 44e0d506..00000000 --- a/preferences/migrations/0059_auto_20190120_1739.py +++ /dev/null @@ -1,104 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-20 23:39 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import preferences.models -import re2o.mixins - - -def create_defaults(apps, schema_editor): - CotisationsOption = apps.get_model("preferences", "CotisationsOption") - CotisationsOption.objects.get_or_create() - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0058_auto_20190108_1650")] - - operations = [ - migrations.CreateModel( - name="CotisationsOption", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "send_voucher_mail", - models.BooleanField( - default=False, - verbose_name="Send voucher by email when the invoice is controlled.", - ), - ), - ], - options={"verbose_name": "cotisations options"}, - bases=(re2o.mixins.AclMixin, models.Model), - ), - migrations.CreateModel( - name="DocumentTemplate", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "template", - models.FileField(upload_to="templates/", verbose_name="template"), - ), - ( - "name", - models.CharField(max_length=125, unique=True, verbose_name="name"), - ), - ], - options={ - "verbose_name": "document template", - "verbose_name_plural": "document templates", - }, - bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model), - ), - migrations.AddField( - model_name="assooption", - name="pres_name", - field=models.CharField( - default="", - help_text="Displayed on subscription vouchers", - max_length=255, - verbose_name="President of the association", - ), - ), - migrations.AddField( - model_name="cotisationsoption", - name="invoice_template", - field=models.OneToOneField( - default=preferences.models.default_invoice, - on_delete=django.db.models.deletion.PROTECT, - related_name="invoice_template", - to="preferences.DocumentTemplate", - verbose_name="Template for invoices", - ), - ), - migrations.AddField( - model_name="cotisationsoption", - name="voucher_template", - field=models.OneToOneField( - default=preferences.models.default_voucher, - on_delete=django.db.models.deletion.PROTECT, - related_name="voucher_template", - to="preferences.DocumentTemplate", - verbose_name="Template for subscription voucher", - ), - ), - migrations.RunPython(create_defaults), - ] diff --git a/preferences/migrations/0060_auto_20190712_1821.py b/preferences/migrations/0060_auto_20190712_1821.py deleted file mode 100644 index 185a2d3f..00000000 --- a/preferences/migrations/0060_auto_20190712_1821.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-07-12 16:21 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0059_auto_20190120_1739")] - - operations = [ - migrations.AlterField( - model_name="reminder", - name="message", - field=models.TextField( - blank=True, - default="", - help_text="Message displayed specifically for this reminder", - null=True, - ), - ) - ] diff --git a/preferences/migrations/0061_optionaluser_allow_archived_connexion.py b/preferences/migrations/0061_optionaluser_allow_archived_connexion.py deleted file mode 100644 index a3b2898b..00000000 --- a/preferences/migrations/0061_optionaluser_allow_archived_connexion.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-09-09 09:50 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0060_auto_20190712_1821")] - - operations = [ - migrations.AddField( - model_name="optionaluser", - name="allow_archived_connexion", - field=models.BooleanField( - default=False, - help_text="If True, archived users are allowed to connect.", - ), - ) - ] diff --git a/preferences/migrations/0062_auto_20190910_1909.py b/preferences/migrations/0062_auto_20190910_1909.py deleted file mode 100644 index f7168b34..00000000 --- a/preferences/migrations/0062_auto_20190910_1909.py +++ /dev/null @@ -1,117 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-09-10 17:09 -from __future__ import unicode_literals - -from django.db import migrations, models -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0061_optionaluser_allow_archived_connexion")] - - operations = [ - migrations.CreateModel( - name="RadiusAttribute", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "attribute", - models.CharField( - help_text="See http://freeradius.org/rfc/attributes.html", - max_length=255, - verbose_name="Attribute", - ), - ), - ("value", models.CharField(max_length=255, verbose_name="Value")), - ( - "comment", - models.TextField( - blank=True, - default="", - help_text="Use this field to document this attribute.", - verbose_name="Comment", - ), - ), - ], - options={ - "verbose_name": "RADIUS attribute", - "verbose_name_plural": "RADIUS attributes", - }, - bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model), - ), - migrations.AddField( - model_name="radiusoption", - name="banned_attributes", - field=models.ManyToManyField( - blank=True, - help_text="Answer attributes for banned users.", - related_name="banned_attribute", - to="preferences.RadiusAttribute", - verbose_name="Banned attributes.", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="non_member_attributes", - field=models.ManyToManyField( - blank=True, - help_text="Answer attributes for non members.", - related_name="non_member_attribute", - to="preferences.RadiusAttribute", - verbose_name="Non member attributes.", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="ok_attributes", - field=models.ManyToManyField( - blank=True, - help_text="Answer attributes for accepted users.", - related_name="ok_attribute", - to="preferences.RadiusAttribute", - verbose_name="Accepted users attributes.", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_machine_attributes", - field=models.ManyToManyField( - blank=True, - help_text="Answer attributes for unknown machines.", - related_name="unknown_machine_attribute", - to="preferences.RadiusAttribute", - verbose_name="Unknown machines attributes.", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_port_attributes", - field=models.ManyToManyField( - blank=True, - help_text="Answer attributes for unknown ports.", - related_name="unknown_port_attribute", - to="preferences.RadiusAttribute", - verbose_name="Unknown ports attributes.", - ), - ), - migrations.AddField( - model_name="radiusoption", - name="unknown_room_attributes", - field=models.ManyToManyField( - blank=True, - help_text="Answer attributes for unknown rooms.", - related_name="unknown_room_attribute", - to="preferences.RadiusAttribute", - verbose_name="Unknown rooms attributes.", - ), - ), - ] diff --git a/preferences/migrations/0063_mandate.py b/preferences/migrations/0063_mandate.py deleted file mode 100644 index 2c242938..00000000 --- a/preferences/migrations/0063_mandate.py +++ /dev/null @@ -1,93 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-09-21 18:23 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -from django.utils import timezone -import re2o.mixins - - -def create_current_mandate(apps, schema_editor): - AssoOption = apps.get_model("preferences", "AssoOption") - Mandate = apps.get_model("preferences", "Mandate") - Adherent = apps.get_model("users", "Adherent") - assooption = AssoOption.objects.get_or_create()[0] - pres_name = assooption.pres_name - l = pres_name.split(" ") - try: - name, surname = l[0], l[1] - president = Adherent.objects.get( - name__icontains=name, surname__icontains=surname - ) - Mandate.objects.create(president=president, start_date=timezone.now()) - except Exception as e: - print( - "Warning : I was unable to find an adherent corresponding to %s. You might want to edit your preferences afterward. I will disable the sending of vouchers by email." - % pres_name - ) - CotisationsOption = apps.get_model("preferences", "CotisationsOption") - cotisoption = CotisationsOption.objects.get_or_create()[0] - cotisoption.send_voucher_mail = False - cotisoption.save() - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("preferences", "0062_auto_20190910_1909"), - ] - - operations = [ - migrations.CreateModel( - name="Mandate", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("start_date", models.DateTimeField(verbose_name="start date")), - ( - "end_date", - models.DateTimeField( - blank=True, null=True, verbose_name="end date" - ), - ), - ( - "president", - models.ForeignKey( - blank=True, - help_text="Displayed on subscription vouchers", - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to=settings.AUTH_USER_MODEL, - verbose_name="President of the association", - ), - ), - ], - options={ - "verbose_name": "Mandate", - "verbose_name_plural": "Mandates", - "permissions": (("view_mandate", "Can view a mandate"),), - }, - bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model), - ), - migrations.RunPython(create_current_mandate), - migrations.AlterField( - model_name="cotisationsoption", - name="send_voucher_mail", - field=models.BooleanField( - default=False, - help_text="Be carefull, if no mandate is defined on the preferences page, errors will be triggered when generating vouchers.", - verbose_name="Send voucher by email when the invoice is controlled.", - ), - ), - migrations.RemoveField(model_name="assooption", name="pres_name"), - ] diff --git a/preferences/migrations/0064_auto_20191008_1335.py b/preferences/migrations/0064_auto_20191008_1335.py deleted file mode 100644 index 1055de4b..00000000 --- a/preferences/migrations/0064_auto_20191008_1335.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-10-08 11:35 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0063_mandate")] - - operations = [ - migrations.AlterField( - model_name="mailmessageoption", - name="welcome_mail_en", - field=models.TextField( - blank=True, default="", help_text="Welcome email in English" - ), - ), - migrations.AlterField( - model_name="mailmessageoption", - name="welcome_mail_fr", - field=models.TextField( - blank=True, default="", help_text="Welcome email in French" - ), - ), - ] diff --git a/preferences/migrations/0065_auto_20191010_1227.py b/preferences/migrations/0065_auto_20191010_1227.py deleted file mode 100644 index 2420beea..00000000 --- a/preferences/migrations/0065_auto_20191010_1227.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-10-10 10:27 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0064_auto_20191008_1335")] - - operations = [ - migrations.AlterField( - model_name="radiuskey", - name="default_switch", - field=models.BooleanField( - default=False, help_text="Default key for switches" - ), - ) - ] diff --git a/preferences/migrations/0066_optionalmachine_default_dns_ttl.py b/preferences/migrations/0066_optionalmachine_default_dns_ttl.py deleted file mode 100644 index 978957d4..00000000 --- a/preferences/migrations/0066_optionalmachine_default_dns_ttl.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-10-02 20:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("preferences", "0065_auto_20191010_1227")] - - operations = [ - migrations.AddField( - model_name="optionalmachine", - name="default_dns_ttl", - field=models.PositiveIntegerField( - default=172800, - verbose_name="Default Time To Live (TTL) for CNAME, A and AAA records.", - ), - ) - ] diff --git a/preferences/migrations/0067_auto_20191120_0159.py b/preferences/migrations/0067_auto_20191120_0159.py deleted file mode 100644 index 47f93ad4..00000000 --- a/preferences/migrations/0067_auto_20191120_0159.py +++ /dev/null @@ -1,289 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-11-20 00:59 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import preferences.models -import re2o.aes_field - - -class Migration(migrations.Migration): - - dependencies = [ - ('preferences', '0066_optionalmachine_default_dns_ttl'), - ] - - operations = [ - migrations.AlterModelOptions( - name='assooption', - options={'permissions': (('view_assooption', 'Can view the organisation preferences'),), 'verbose_name': 'organisation preferences'}, - ), - migrations.AlterModelOptions( - name='cotisationsoption', - options={'verbose_name': 'subscription preferences'}, - ), - migrations.AlterModelOptions( - name='generaloption', - options={'permissions': (('view_generaloption', 'Can view the general preferences'),), 'verbose_name': 'general preferences'}, - ), - migrations.AlterModelOptions( - name='homeoption', - options={'permissions': (('view_homeoption', 'Can view the homepage preferences'),), 'verbose_name': 'homepage preferences'}, - ), - migrations.AlterModelOptions( - name='mailmessageoption', - options={'permissions': (('view_mailmessageoption', 'Can view the email message preferences'),), 'verbose_name': 'email message preferences'}, - ), - migrations.AlterModelOptions( - name='mandate', - options={'permissions': (('view_mandate', 'Can view a mandate object'),), 'verbose_name': 'mandate', 'verbose_name_plural': 'mandates'}, - ), - migrations.AlterModelOptions( - name='optionalmachine', - options={'permissions': (('view_optionalmachine', 'Can view the machine preferences'),), 'verbose_name': 'machine preferences'}, - ), - migrations.AlterModelOptions( - name='optionaltopologie', - options={'permissions': (('view_optionaltopologie', 'Can view the topology preferences'),), 'verbose_name': 'topology preferences'}, - ), - migrations.AlterModelOptions( - name='optionaluser', - options={'permissions': (('view_optionaluser', 'Can view the user preferences'),), 'verbose_name': 'user preferences'}, - ), - migrations.AlterModelOptions( - name='service', - options={'permissions': (('view_service', 'Can view the service preferences'),), 'verbose_name': 'service', 'verbose_name_plural': 'services'}, - ), - migrations.AlterField( - model_name='cotisationsoption', - name='invoice_template', - field=models.OneToOneField(default=preferences.models.default_invoice, on_delete=django.db.models.deletion.PROTECT, related_name='invoice_template', to='preferences.DocumentTemplate', verbose_name='template for invoices'), - ), - migrations.AlterField( - model_name='cotisationsoption', - name='send_voucher_mail', - field=models.BooleanField(default=False, help_text='Be careful, if no mandate is defined on the preferences page, errors will be triggered when generating vouchers.', verbose_name='send voucher by email when the invoice is controlled'), - ), - migrations.AlterField( - model_name='cotisationsoption', - name='voucher_template', - field=models.OneToOneField(default=preferences.models.default_voucher, on_delete=django.db.models.deletion.PROTECT, related_name='voucher_template', to='preferences.DocumentTemplate', verbose_name='template for subscription vouchers'), - ), - migrations.AlterField( - model_name='generaloption', - name='general_message_en', - field=models.TextField(blank=True, default='', help_text='General message displayed on the English version of the website (e.g. in case of maintenance).'), - ), - migrations.AlterField( - model_name='generaloption', - name='general_message_fr', - field=models.TextField(blank=True, default='', help_text='General message displayed on the French version of the website (e.g. in case of maintenance).'), - ), - migrations.AlterField( - model_name='mailcontact', - name='address', - field=models.EmailField(default='contact@example.org', help_text='Contact email address.', max_length=254), - ), - migrations.AlterField( - model_name='mailmessageoption', - name='welcome_mail_en', - field=models.TextField(blank=True, default='', help_text='Welcome email in English.'), - ), - migrations.AlterField( - model_name='mailmessageoption', - name='welcome_mail_fr', - field=models.TextField(blank=True, default='', help_text='Welcome email in French.'), - ), - migrations.AlterField( - model_name='mandate', - name='president', - field=models.ForeignKey(blank=True, help_text='Displayed on subscription vouchers.', null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='president of the association'), - ), - migrations.AlterField( - model_name='optionalmachine', - name='default_dns_ttl', - field=models.PositiveIntegerField(default=172800, verbose_name='default Time To Live (TTL) for CNAME, A and AAAA records'), - ), - migrations.AlterField( - model_name='optionalmachine', - name='ipv6_mode', - field=models.CharField(choices=[('SLAAC', 'Automatic configuration by RA'), ('DHCPV6', 'IP addresses assignment by DHCPv6'), ('DISABLED', 'Disabled')], default='DISABLED', max_length=32), - ), - migrations.AlterField( - model_name='optionaltopologie', - name='sftp_login', - field=models.CharField(blank=True, help_text='SFTP login for switches.', max_length=32, null=True), - ), - migrations.AlterField( - model_name='optionaltopologie', - name='sftp_pass', - field=re2o.aes_field.AESEncryptedField(blank=True, help_text='SFTP password.', max_length=63, null=True), - ), - migrations.AlterField( - model_name='optionaltopologie', - name='switchs_ip_type', - field=models.OneToOneField(blank=True, help_text='IP range for the management of switches.', null=True, on_delete=django.db.models.deletion.PROTECT, to='machines.IpType'), - ), - migrations.AlterField( - model_name='optionaltopologie', - name='switchs_provision', - field=models.CharField(choices=[('sftp', 'SFTP'), ('tftp', 'TFTP')], default='tftp', help_text='Provision of configuration mode for switches.', max_length=32), - ), - migrations.AlterField( - model_name='optionaltopologie', - name='switchs_rest_management', - field=models.BooleanField(default=False, help_text='REST management, activated in case of automatic provision.'), - ), - migrations.AlterField( - model_name='optionaltopologie', - name='switchs_web_management', - field=models.BooleanField(default=False, help_text='Web management, activated in case of automatic provision.'), - ), - migrations.AlterField( - model_name='optionaltopologie', - name='switchs_web_management_ssl', - field=models.BooleanField(default=False, help_text='SSL web management, make sure that a certificate is installed on the switch.'), - ), - migrations.AlterField( - model_name='optionaluser', - name='local_email_domain', - field=models.CharField(default='@example.org', help_text='Domain to use for local email accounts.', max_length=32), - ), - migrations.AlterField( - model_name='radiusattribute', - name='attribute', - field=models.CharField(help_text='See https://freeradius.org/rfc/attributes.html.', max_length=255, verbose_name='attribute'), - ), - migrations.AlterField( - model_name='radiusattribute', - name='comment', - field=models.TextField(blank=True, default='', help_text='Use this field to document this attribute.', verbose_name='comment'), - ), - migrations.AlterField( - model_name='radiusattribute', - name='value', - field=models.CharField(max_length=255, verbose_name='value'), - ), - migrations.AlterField( - model_name='radiuskey', - name='comment', - field=models.CharField(blank=True, help_text='Comment for this key.', max_length=255, null=True), - ), - migrations.AlterField( - model_name='radiuskey', - name='default_switch', - field=models.BooleanField(default=False, help_text='Default key for switches.'), - ), - migrations.AlterField( - model_name='radiuskey', - name='radius_key', - field=re2o.aes_field.AESEncryptedField(help_text='RADIUS key.', max_length=255), - ), - migrations.AlterField( - model_name='radiusoption', - name='banned', - field=models.CharField(choices=[('REJECT', 'Reject the machine'), ('SET_VLAN', 'Place the machine on the VLAN')], default='REJECT', max_length=32, verbose_name='policy for banned users'), - ), - migrations.AlterField( - model_name='radiusoption', - name='banned_attributes', - field=models.ManyToManyField(blank=True, help_text='Answer attributes for banned users.', related_name='banned_attribute', to='preferences.RadiusAttribute', verbose_name='banned users attributes'), - ), - migrations.AlterField( - model_name='radiusoption', - name='banned_vlan', - field=models.ForeignKey(blank=True, help_text='VLAN for banned users if not rejected.', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='banned_vlan', to='machines.Vlan', verbose_name='banned users VLAN'), - ), - migrations.AlterField( - model_name='radiusoption', - name='non_member', - field=models.CharField(choices=[('REJECT', 'Reject the machine'), ('SET_VLAN', 'Place the machine on the VLAN')], default='REJECT', max_length=32, verbose_name='policy for non members'), - ), - migrations.AlterField( - model_name='radiusoption', - name='non_member_attributes', - field=models.ManyToManyField(blank=True, help_text='Answer attributes for non members.', related_name='non_member_attribute', to='preferences.RadiusAttribute', verbose_name='non members attributes'), - ), - migrations.AlterField( - model_name='radiusoption', - name='non_member_vlan', - field=models.ForeignKey(blank=True, help_text='VLAN for non members if not rejected.', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='non_member_vlan', to='machines.Vlan', verbose_name='non members VLAN'), - ), - migrations.AlterField( - model_name='radiusoption', - name='ok_attributes', - field=models.ManyToManyField(blank=True, help_text='Answer attributes for accepted users.', related_name='ok_attribute', to='preferences.RadiusAttribute', verbose_name='accepted users attributes'), - ), - migrations.AlterField( - model_name='radiusoption', - name='radius_general_policy', - field=models.CharField(choices=[('MACHINE', "On the IP range's VLAN of the machine"), ('DEFINED', 'Preset in "VLAN for machines accepted by RADIUS"')], default='DEFINED', max_length=32), - ), - migrations.AlterField( - model_name='radiusoption', - name='unknown_machine', - field=models.CharField(choices=[('REJECT', 'Reject the machine'), ('SET_VLAN', 'Place the machine on the VLAN')], default='REJECT', max_length=32, verbose_name='policy for unknown machines'), - ), - migrations.AlterField( - model_name='radiusoption', - name='unknown_machine_attributes', - field=models.ManyToManyField(blank=True, help_text='Answer attributes for unknown machines.', related_name='unknown_machine_attribute', to='preferences.RadiusAttribute', verbose_name='unknown machines attributes'), - ), - migrations.AlterField( - model_name='radiusoption', - name='unknown_machine_vlan', - field=models.ForeignKey(blank=True, help_text='VLAN for unknown machines if not rejected.', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='unknown_machine_vlan', to='machines.Vlan', verbose_name='unknown machines VLAN'), - ), - migrations.AlterField( - model_name='radiusoption', - name='unknown_port', - field=models.CharField(choices=[('REJECT', 'Reject the machine'), ('SET_VLAN', 'Place the machine on the VLAN')], default='REJECT', max_length=32, verbose_name='policy for unknown ports'), - ), - migrations.AlterField( - model_name='radiusoption', - name='unknown_port_attributes', - field=models.ManyToManyField(blank=True, help_text='Answer attributes for unknown ports.', related_name='unknown_port_attribute', to='preferences.RadiusAttribute', verbose_name='unknown ports attributes'), - ), - migrations.AlterField( - model_name='radiusoption', - name='unknown_port_vlan', - field=models.ForeignKey(blank=True, help_text='VLAN for unknown ports if not rejected.', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='unknown_port_vlan', to='machines.Vlan', verbose_name='unknown ports VLAN'), - ), - migrations.AlterField( - model_name='radiusoption', - name='unknown_room_attributes', - field=models.ManyToManyField(blank=True, help_text='Answer attributes for unknown rooms.', related_name='unknown_room_attribute', to='preferences.RadiusAttribute', verbose_name='unknown rooms attributes'), - ), - migrations.AlterField( - model_name='radiusoption', - name='unknown_room_vlan', - field=models.ForeignKey(blank=True, help_text='VLAN for unknown rooms if not rejected.', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='unknown_room_vlan', to='machines.Vlan', verbose_name='unknown rooms VLAN'), - ), - migrations.AlterField( - model_name='reminder', - name='days', - field=models.IntegerField(default=7, help_text="Delay between the email and the membership's end.", unique=True), - ), - migrations.AlterField( - model_name='reminder', - name='message', - field=models.TextField(blank=True, default='', help_text='Message displayed specifically for this reminder.', null=True), - ), - migrations.AlterField( - model_name='switchmanagementcred', - name='default_switch', - field=models.BooleanField(default=True, help_text='Default credentials for switches.', unique=True), - ), - migrations.AlterField( - model_name='switchmanagementcred', - name='management_id', - field=models.CharField(help_text='Switch login.', max_length=63), - ), - migrations.AlterField( - model_name='switchmanagementcred', - name='management_pass', - field=re2o.aes_field.AESEncryptedField(help_text='Password.', max_length=63), - ), - ] diff --git a/preferences/migrations/0068_optionaluser_allow_set_password_during_user_creation.py b/preferences/migrations/0068_optionaluser_allow_set_password_during_user_creation.py deleted file mode 100644 index 63d9e4c9..00000000 --- a/preferences/migrations/0068_optionaluser_allow_set_password_during_user_creation.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-16 17:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('preferences', '0067_auto_20191120_0159'), - ] - - operations = [ - migrations.AddField( - model_name='optionaluser', - name='allow_set_password_during_user_creation', - field=models.BooleanField(default=False, help_text='If True, users have the choice to receive an email containing a link to reset their password during creation, or to directly set their password in the page. If False, an email is always sent.'), - ), - ] diff --git a/preferences/migrations/0069_optionaluser_disable_emailnotyetconfirmed.py b/preferences/migrations/0069_optionaluser_disable_emailnotyetconfirmed.py deleted file mode 100644 index 3cc12081..00000000 --- a/preferences/migrations/0069_optionaluser_disable_emailnotyetconfirmed.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-17 00:46 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('preferences', '0068_optionaluser_allow_set_password_during_user_creation'), - ] - - operations = [ - migrations.AddField( - model_name='optionaluser', - name='disable_emailnotyetconfirmed', - field=models.IntegerField(default=2, help_text='Users with an email address not yet confirmed will be disabled after this number of days.') - ), - ] - diff --git a/preferences/migrations/0070_auto_20200419_0225.py b/preferences/migrations/0070_auto_20200419_0225.py deleted file mode 100644 index 6dd70fa4..00000000 --- a/preferences/migrations/0070_auto_20200419_0225.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-19 00:25 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('preferences', '0069_optionaluser_disable_emailnotyetconfirmed'), - ] - - operations = [ - migrations.RemoveField( - model_name='optionaluser', - name='self_change_room', - ), - migrations.AddField( - model_name='optionaluser', - name='self_room_policy', - field=models.CharField(choices=[('DISABLED', "Users can't select their room"), ('ONLY_INACTIVE', 'Users can only select a room occupied by a user with a disabled connection.'), ('ALL_ROOM', 'Users can select all rooms')], default='DISABLED', help_text='Policy on self users room edition', max_length=32), - ), - ] diff --git a/preferences/migrations/0071_optionaluser_self_change_pseudo.py b/preferences/migrations/0071_optionaluser_self_change_pseudo.py deleted file mode 100644 index 58214f3c..00000000 --- a/preferences/migrations/0071_optionaluser_self_change_pseudo.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-23 09:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('preferences', '0070_auto_20200419_0225'), - ] - - operations = [ - migrations.AddField( - model_name='optionaluser', - name='self_change_pseudo', - field=models.BooleanField(default=True, help_text='Users can edit their pseudo.'), - ), - ] diff --git a/re2o/settings.py b/re2o/settings.py index 158a278b..0c30814a 100644 --- a/re2o/settings.py +++ b/re2o/settings.py @@ -168,7 +168,7 @@ LANGUAGES = [("en", _("English")), ("fr", _("French"))] USE_TZ = True # Router config for database -DATABASE_ROUTERS = ["ldapdb.router.Router"] +DATABASE_ROUTERS = [] if "LOCAL_ROUTERS" in globals(): DATABASE_ROUTERS += LOCAL_ROUTERS diff --git a/re2o/settings_local.example.py b/re2o/settings_local.example.py index fc3cd8fc..c1e315b8 100644 --- a/re2o/settings_local.example.py +++ b/re2o/settings_local.example.py @@ -106,6 +106,7 @@ GID_RANGES = {"posix": [501, 600]} # If you want to add a database routers, please fill in above and add your databse. # Then, add a file "local_routers.py" in folder app re2o, and add your router path in # the LOCAL_ROUTERS var as "re2o.local_routers.DbRouter". You can also add extra routers. +# To use ldap you need to add "ldapdb.router.Router" LOCAL_ROUTERS = [] # Some optionnal Re2o Apps diff --git a/topologie/migrations/0001_initial.py b/topologie/migrations/0001_initial.py deleted file mode 100644 index 8dd05d98..00000000 --- a/topologie/migrations/0001_initial.py +++ /dev/null @@ -1,51 +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 = [] - - operations = [ - migrations.CreateModel( - name="Switch", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - verbose_name="ID", - serialize=False, - ), - ), - ("building", models.CharField(max_length=10)), - ("number", models.IntegerField()), - ("details", models.CharField(max_length=255, blank=True)), - ], - ) - ] diff --git a/topologie/migrations/0001_model_creation.py b/topologie/migrations/0001_model_creation.py index 1367271e..6ec3e954 100644 --- a/topologie/migrations/0001_model_creation.py +++ b/topologie/migrations/0001_model_creation.py @@ -13,425 +13,6 @@ import re2o.field_permissions class Migration(migrations.Migration): initial = True dependencies = [("machines", "0001_model_creation")] - replaces = [ - ("users", "0001_initial"), - ("users", "0002_auto_20160630_2301"), - ("users", "0003_listrights_rights"), - ("users", "0004_auto_20160701_2312"), - ("users", "0005_auto_20160702_0006"), - ("users", "0006_ban"), - ("users", "0007_auto_20160702_2322"), - ("users", "0008_user_registered"), - ("users", "0009_user_room"), - ("users", "0010_auto_20160703_1226"), - ("users", "0011_auto_20160703_1227"), - ("users", "0012_auto_20160703_1230"), - ("users", "0013_auto_20160704_1547"), - ("users", "0014_auto_20160704_1548"), - ("users", "0015_whitelist"), - ("users", "0016_auto_20160706_1220"), - ("users", "0017_auto_20160707_0105"), - ("users", "0018_auto_20160707_0115"), - ("users", "0019_auto_20160708_1633"), - ("users", "0020_request"), - ("users", "0021_ldapuser"), - ("users", "0022_ldapuser_sambasid"), - ("users", "0023_auto_20160724_1908"), - ("users", "0024_remove_ldapuser_mac_list"), - ("users", "0025_listshell"), - ("users", "0026_user_shell"), - ("users", "0027_auto_20160726_0216"), - ("users", "0028_auto_20160726_0227"), - ("users", "0029_auto_20160726_0229"), - ("users", "0030_auto_20160726_0357"), - ("users", "0031_auto_20160726_0359"), - ("users", "0032_auto_20160727_2122"), - ("users", "0033_remove_ldapuser_loginshell"), - ("users", "0034_auto_20161018_0037"), - ("users", "0035_auto_20161018_0046"), - ("users", "0036_auto_20161022_2146"), - ("users", "0037_auto_20161028_1906"), - ("users", "0038_auto_20161031_0258"), - ("users", "0039_auto_20161119_0033"), - ("users", "0040_auto_20161119_1709"), - ("users", "0041_listright_details"), - ("users", "0042_auto_20161126_2028"), - ("users", "0043_auto_20161224_1156"), - ("users", "0043_ban_state"), - ("users", "0044_user_ssh_public_key"), - ("users", "0045_merge"), - ("users", "0046_auto_20170617_1433"), - ("users", "0047_auto_20170618_0156"), - ("users", "0048_auto_20170618_0210"), - ("users", "0049_auto_20170618_1424"), - ("users", "0050_serviceuser_comment"), - ("users", "0051_user_telephone"), - ("users", "0052_ldapuser_shadowexpire"), - ("users", "0053_auto_20170626_2105"), - ("users", "0054_auto_20170626_2219"), - ("users", "0055_auto_20171003_0556"), - ("users", "0056_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ("users", "0058_auto_20171025_0154"), - ("users", "0059_auto_20171025_1854"), - ("users", "0060_auto_20171120_0317"), - ("users", "0061_auto_20171230_2033"), - ("users", "0062_auto_20171231_0056"), - ("users", "0063_auto_20171231_0140"), - ("users", "0064_auto_20171231_0150"), - ("users", "0065_auto_20171231_2053"), - ("users", "0066_grouppermissions"), - ("users", "0067_serveurpermission"), - ("users", "0068_auto_20180107_2245"), - ("users", "0069_club_mailing"), - ("users", "0070_auto_20180324_1906"), - ("users", "0071_auto_20180415_1252"), - ("users", "0072_auto_20180426_2021"), - ("users", "0073_auto_20180629_1614"), - ("users", "0074_auto_20180810_2104"), - ("users", "0074_auto_20180814_1059"), - ("users", "0075_merge_20180815_2202"), - ("users", "0076_auto_20180818_1321"), - ("users", "0077_auto_20180824_1750"), - ("users", "0078_auto_20181011_1405"), - ("users", "0079_auto_20181228_2039"), - ("users", "0080_auto_20190108_1726"), - ("users", "0081_auto_20190317_0302"), - ("users", "0082_auto_20190908_1338"), - ("users", "0083_user_shortcuts_enabled"), - ("users", "0084_auto_20191120_0159"), - ("users", "0085_user_email_state"), - ("users", "0086_user_email_change_date"), - ("users", "0087_request_email"), - ("users", "0088_auto_20200417_2312"), - ("users", "0089_auto_20200418_0112"), - ("users", "0090_auto_20200421_1825"), - ("users", "0091_auto_20200423_1256"), - ("users", "0092_auto_20200502_0057"), - ("users", "0093_user_profile_image"), - ("users", "0094_remove_user_profile_image"), - ("users", "0095_user_theme"), - ("users", "0096_auto_20210110_1811"), - ("cotisations", "0001_initial"), - ("cotisations", "0002_remove_facture_article"), - ("cotisations", "0003_auto_20160702_1448"), - ("cotisations", "0004_auto_20160702_1528"), - ("cotisations", "0005_auto_20160702_1532"), - ("cotisations", "0006_auto_20160702_1534"), - ("cotisations", "0007_auto_20160702_1543"), - ("cotisations", "0008_auto_20160702_1614"), - ("cotisations", "0009_remove_cotisation_user"), - ("cotisations", "0010_auto_20160702_1840"), - ("cotisations", "0011_auto_20160702_1911"), - ("cotisations", "0012_auto_20160704_0118"), - ("cotisations", "0013_auto_20160711_2240"), - ("cotisations", "0014_auto_20160712_0245"), - ("cotisations", "0015_auto_20160714_2142"), - ("cotisations", "0016_auto_20160715_0110"), - ("cotisations", "0017_auto_20170718_2329"), - ("cotisations", "0018_paiement_type_paiement"), - ("cotisations", "0019_auto_20170819_0055"), - ("cotisations", "0020_auto_20170819_0057"), - ("cotisations", "0021_auto_20170819_0104"), - ("cotisations", "0022_auto_20170824_0128"), - ("cotisations", "0023_auto_20170902_1303"), - ("cotisations", "0024_auto_20171015_2033"), - ("cotisations", "0025_article_type_user"), - ("cotisations", "0026_auto_20171028_0126"), - ("cotisations", "0027_auto_20171029_1156"), - ("cotisations", "0028_auto_20171231_0007"), - ("cotisations", "0029_auto_20180414_2056"), - ("cotisations", "0030_custom_payment"), - ("cotisations", "0031_comnpaypayment_production"), - ("cotisations", "0032_custom_invoice"), - ("cotisations", "0033_auto_20180818_1319"), - ("cotisations", "0034_auto_20180831_1532"), - ("cotisations", "0035_notepayment"), - ("cotisations", "0036_custominvoice_remark"), - ("cotisations", "0037_costestimate"), - ("cotisations", "0038_auto_20181231_1657"), - ("cotisations", "0039_freepayment"), - ("cotisations", "0040_auto_20191002_2335"), - ("cotisations", "0041_auto_20191103_2131"), - ("cotisations", "0042_auto_20191120_0159"), - ("cotisations", "0043_separation_membership_connection_p1"), - ("cotisations", "0044_separation_membership_connection_p2"), - ("cotisations", "0045_separation_membership_connection_p3"), - ("cotisations", "0046_article_need_membership"), - ("cotisations", "0047_article_need_membership_init"), - ("cotisations", "0048_auto_20201017_0018"), - ("cotisations", "0049_auto_20201102_2305"), - ("cotisations", "0050_auto_20201102_2342"), - ("cotisations", "0051_auto_20201228_1636"), - ("machines", "0001_initial"), - ("machines", "0002_auto_20160703_1444"), - ("machines", "0003_auto_20160703_1450"), - ("machines", "0004_auto_20160703_1451"), - ("machines", "0005_auto_20160703_1523"), - ("machines", "0006_auto_20160703_1813"), - ("machines", "0007_auto_20160703_1816"), - ("machines", "0008_remove_interface_ipv6"), - ("machines", "0009_auto_20160703_2358"), - ("machines", "0010_auto_20160704_0104"), - ("machines", "0011_auto_20160704_0105"), - ("machines", "0012_auto_20160704_0118"), - ("machines", "0013_auto_20160705_1014"), - ("machines", "0014_auto_20160706_1220"), - ("machines", "0015_auto_20160707_0105"), - ("machines", "0016_auto_20160708_1633"), - ("machines", "0017_auto_20160708_1645"), - ("machines", "0018_auto_20160708_1813"), - ("machines", "0019_auto_20160718_1141"), - ("machines", "0020_auto_20160718_1849"), - ("machines", "0021_auto_20161006_1943"), - ("machines", "0022_auto_20161011_1829"), - ("machines", "0023_iplist_ip_type"), - ("machines", "0024_machinetype_need_infra"), - ("machines", "0025_auto_20161023_0038"), - ("machines", "0026_auto_20161026_1348"), - ("machines", "0027_alias"), - ("machines", "0028_iptype_domaine_ip"), - ("machines", "0029_iptype_domaine_range"), - ("machines", "0030_auto_20161118_1730"), - ("machines", "0031_auto_20161119_1709"), - ("machines", "0032_auto_20161119_1850"), - ("machines", "0033_extension_need_infra"), - ("machines", "0034_iplist_need_infra"), - ("machines", "0035_auto_20161224_1201"), - ("machines", "0036_auto_20161224_1204"), - ("machines", "0037_domain_cname"), - ("machines", "0038_auto_20161224_1721"), - ("machines", "0039_auto_20161224_1732"), - ("machines", "0040_remove_interface_dns"), - ("machines", "0041_remove_ns_interface"), - ("machines", "0042_ns_ns"), - ("machines", "0043_auto_20170721_0350"), - ("machines", "0044_auto_20170808_0233"), - ("machines", "0045_auto_20170808_0348"), - ("machines", "0046_auto_20170808_1423"), - ("machines", "0047_auto_20170809_0606"), - ("machines", "0048_auto_20170823_2315"), - ("machines", "0049_vlan"), - ("machines", "0050_auto_20170826_0022"), - ("machines", "0051_iptype_vlan"), - ("machines", "0052_auto_20170828_2322"), - ("machines", "0053_text"), - ("machines", "0054_text_zone"), - ("machines", "0055_nas"), - ("machines", "0056_nas_port_access_mode"), - ("machines", "0057_nas_autocapture_mac"), - ("machines", "0058_auto_20171002_0350"), - ("machines", "0059_iptype_prefix_v6"), - ("machines", "0060_iptype_ouverture_ports"), - ("machines", "0061_auto_20171015_2033"), - ("machines", "0062_extension_origin_v6"), - ("machines", "0063_auto_20171020_0040"), - ("machines", "0064_auto_20171115_0253"), - ("machines", "0065_auto_20171115_1514"), - ("machines", "0066_srv"), - ("machines", "0067_auto_20171116_0152"), - ("machines", "0068_auto_20171116_0252"), - ("machines", "0069_auto_20171116_0822"), - ("machines", "0070_auto_20171231_1947"), - ("machines", "0071_auto_20171231_2100"), - ("machines", "0072_auto_20180108_1822"), - ("machines", "0073_auto_20180128_2203"), - ("machines", "0074_auto_20180129_0352"), - ("machines", "0075_auto_20180130_0052"), - ("machines", "0076_auto_20180130_1623"), - ("machines", "0077_auto_20180409_2243"), - ("machines", "0078_auto_20180415_1252"), - ("machines", "0079_auto_20180416_0107"), - ("machines", "0080_auto_20180502_2334"), - ("machines", "0081_auto_20180521_1413"), - ("machines", "0082_auto_20180525_2209"), - ("machines", "0083_remove_duplicate_rights"), - ("machines", "0084_dname"), - ("machines", "0085_sshfingerprint"), - ("machines", "0086_role"), - ("machines", "0087_dnssec"), - ("machines", "0088_iptype_prefix_v6_length"), - ("machines", "0089_auto_20180805_1148"), - ("machines", "0090_auto_20180805_1459"), - ("machines", "0091_auto_20180806_2310"), - ("machines", "0092_auto_20180807_0926"), - ("machines", "0093_auto_20180807_1115"), - ("machines", "0094_auto_20180815_1918"), - ("machines", "0095_auto_20180919_2225"), - ("machines", "0096_auto_20181013_1417"), - ("machines", "0097_extension_dnssec"), - ("machines", "0098_auto_20190102_1745"), - ("machines", "0099_role_recursive_dns"), - ("machines", "0100_auto_20190102_1753"), - ("machines", "0101_auto_20190108_1623"), - ("machines", "0102_auto_20190303_1611"), - ("machines", "0103_auto_20191002_2222"), - ("machines", "0104_auto_20191002_2231"), - ("machines", "0105_dname_ttl"), - ("machines", "0106_auto_20191120_0159"), - ("machines", "0107_fix_lowercase_domain"), - ("machines", "0108_ipv6list_active"), - ("preferences", "0001_initial"), - ("preferences", "0002_auto_20170625_1923"), - ("preferences", "0003_optionaluser_solde_negatif"), - ("preferences", "0004_assooption_services"), - ("preferences", "0005_auto_20170824_0139"), - ("preferences", "0006_auto_20170824_0143"), - ("preferences", "0007_auto_20170824_2056"), - ("preferences", "0008_auto_20170824_2122"), - ("preferences", "0009_assooption_utilisateur_asso"), - ("preferences", "0010_auto_20170825_0459"), - ("preferences", "0011_auto_20170825_2307"), - ("preferences", "0012_generaloption_req_expire_hrs"), - ("preferences", "0013_generaloption_site_name"), - ("preferences", "0014_generaloption_email_from"), - ("preferences", "0015_optionaltopologie_radius_general_policy"), - ("preferences", "0016_auto_20170902_1520"), - ("preferences", "0017_mailmessageoption"), - ("preferences", "0018_optionaltopologie_mac_autocapture"), - ("preferences", "0019_remove_optionaltopologie_mac_autocapture"), - ("preferences", "0020_optionalmachine_ipv6"), - ("preferences", "0021_auto_20171015_1741"), - ("preferences", "0022_auto_20171015_1758"), - ("preferences", "0023_auto_20171015_2033"), - ("preferences", "0024_optionaluser_all_can_create"), - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0025_generaloption_general_message"), - ("preferences", "0026_auto_20171216_0401"), - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0028_assooption_description"), - ("preferences", "0028_auto_20180111_1129"), - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0029_auto_20180111_1134"), - ("preferences", "0029_auto_20180318_0213"), - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0030_auto_20180111_2346"), - ("preferences", "0030_merge_20180320_1419"), - ("preferences", "0031_auto_20180323_0218"), - ("preferences", "0031_optionaluser_self_adhesion"), - ("preferences", "0032_optionaluser_min_online_payment"), - ("preferences", "0032_optionaluser_shell_default"), - ("preferences", "0033_accueiloption"), - ("preferences", "0033_generaloption_gtu_sum_up"), - ("preferences", "0034_auto_20180114_2025"), - ("preferences", "0034_auto_20180416_1120"), - ("preferences", "0035_auto_20180114_2132"), - ("preferences", "0035_optionaluser_allow_self_subscription"), - ("preferences", "0036_auto_20180114_2141"), - ("preferences", "0037_auto_20180114_2156"), - ("preferences", "0038_auto_20180114_2209"), - ("preferences", "0039_auto_20180115_0003"), - ("preferences", "0040_auto_20180129_1745"), - ("preferences", "0041_merge_20180130_0052"), - ("preferences", "0042_auto_20180222_1743"), - ("preferences", "0043_optionalmachine_create_machine"), - ("preferences", "0044_remove_payment_pass"), - ("preferences", "0045_remove_unused_payment_fields"), - ("preferences", "0046_optionaluser_mail_extension"), - ("preferences", "0047_mailcontact"), - ("preferences", "0048_auto_20180811_1515"), - ("preferences", "0049_optionaluser_self_change_shell"), - ("preferences", "0050_auto_20180818_1329"), - ("preferences", "0051_auto_20180919_2225"), - ("preferences", "0052_optionaluser_delete_notyetactive"), - ("preferences", "0053_optionaluser_self_change_room"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ("preferences", "0056_2_radiusoption"), - ("preferences", "0056_3_radiusoption"), - ("preferences", "0056_4_radiusoption"), - ("preferences", "0057_optionaluser_all_users_active"), - ("preferences", "0058_auto_20190108_1650"), - ("preferences", "0059_auto_20190120_1739"), - ("preferences", "0060_auto_20190712_1821"), - ("preferences", "0061_optionaluser_allow_archived_connexion"), - ("preferences", "0062_auto_20190910_1909"), - ("preferences", "0063_mandate"), - ("preferences", "0064_auto_20191008_1335"), - ("preferences", "0065_auto_20191010_1227"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ("preferences", "0067_auto_20191120_0159"), - ("preferences", "0068_optionaluser_allow_set_password_during_user_creation"), - ("preferences", "0069_optionaluser_disable_emailnotyetconfirmed"), - ("preferences", "0070_auto_20200419_0225"), - ("preferences", "0071_optionaluser_self_change_pseudo"), - ("topologie", "0001_initial"), - ("topologie", "0002_auto_20160703_1118"), - ("topologie", "0003_room"), - ("topologie", "0004_auto_20160703_1122"), - ("topologie", "0005_auto_20160703_1123"), - ("topologie", "0006_auto_20160703_1129"), - ("topologie", "0007_auto_20160703_1148"), - ("topologie", "0008_port_room"), - ("topologie", "0009_auto_20160703_1200"), - ("topologie", "0010_auto_20160704_2148"), - ("topologie", "0011_auto_20160704_2153"), - ("topologie", "0012_port_machine_interface"), - ("topologie", "0013_port_related"), - ("topologie", "0014_auto_20160706_1238"), - ("topologie", "0015_auto_20160706_1452"), - ("topologie", "0016_auto_20160706_1531"), - ("topologie", "0017_auto_20160718_1141"), - ("topologie", "0018_room_details"), - ("topologie", "0019_auto_20161026_1348"), - ("topologie", "0020_auto_20161119_0033"), - ("topologie", "0021_port_radius"), - ("topologie", "0022_auto_20161211_1622"), - ("topologie", "0023_auto_20170817_1654"), - ("topologie", "0023_auto_20170826_1530"), - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ("topologie", "0025_merge_20170902_1242"), - ("topologie", "0026_auto_20170902_1245"), - ("topologie", "0027_auto_20170905_1442"), - ("topologie", "0028_auto_20170913_1503"), - ("topologie", "0029_auto_20171002_0334"), - ("topologie", "0030_auto_20171004_0235"), - ("topologie", "0031_auto_20171015_2033"), - ("topologie", "0032_auto_20171026_0338"), - ("topologie", "0033_auto_20171231_1743"), - ("topologie", "0034_borne"), - ("topologie", "0035_auto_20180324_0023"), - ("topologie", "0036_transferborne"), - ("topologie", "0037_auto_20180325_0127"), - ("topologie", "0038_transfersw"), - ("topologie", "0039_port_new_switch"), - ("topologie", "0040_transferports"), - ("topologie", "0041_transferportsw"), - ("topologie", "0042_transferswitch"), - ("topologie", "0043_renamenewswitch"), - ("topologie", "0044_auto_20180326_0002"), - ("topologie", "0045_auto_20180326_0123"), - ("topologie", "0046_auto_20180326_0129"), - ("topologie", "0047_ap_machine"), - ("topologie", "0048_ap_machine"), - ("topologie", "0049_switchs_machine"), - ("topologie", "0050_port_new_switch"), - ("topologie", "0051_switchs_machine"), - ("topologie", "0052_transferports"), - ("topologie", "0053_finalsw"), - ("topologie", "0054_auto_20180326_1742"), - ("topologie", "0055_auto_20180329_0431"), - ("topologie", "0056_building_switchbay"), - ("topologie", "0057_auto_20180408_0316"), - ("topologie", "0058_remove_switch_location"), - ("topologie", "0059_auto_20180415_2249"), - ("topologie", "0060_server"), - ("topologie", "0061_portprofile"), - ("topologie", "0062_auto_20180815_1918"), - ("topologie", "0063_auto_20180919_2225"), - ("topologie", "0064_switch_automatic_provision"), - ("topologie", "0065_auto_20180927_1836"), - ("topologie", "0066_modelswitch_commercial_name"), - ("topologie", "0067_auto_20181230_1819"), - ("topologie", "0068_auto_20190102_1758"), - ("topologie", "0069_auto_20190108_1439"), - ("topologie", "0070_auto_20190218_1743"), - ("topologie", "0071_auto_20190218_1936"), - ("topologie", "0072_auto_20190720_2318"), - ("topologie", "0073_auto_20191120_0159"), - ("topologie", "0074_auto_20200419_1640"), - ] operations = [ migrations.CreateModel( name="Stack", diff --git a/topologie/migrations/0002_auto_20160703_1118.py b/topologie/migrations/0002_auto_20160703_1118.py deleted file mode 100644 index 580d184a..00000000 --- a/topologie/migrations/0002_auto_20160703_1118.py +++ /dev/null @@ -1,67 +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 = [ - ("contenttypes", "0002_remove_content_type_name"), - ("topologie", "0001_initial"), - ] - - operations = [ - migrations.CreateModel( - name="Port", - fields=[ - ( - "id", - models.AutoField( - primary_key=True, - serialize=False, - auto_created=True, - verbose_name="ID", - ), - ), - ("port", models.IntegerField()), - ("details", models.CharField(max_length=255, blank=True)), - ("_object_id", models.PositiveIntegerField(null=True, blank=True)), - ( - "_content_type", - models.ForeignKey( - null=True, blank=True, to="contenttypes.ContentType", on_delete=models.CASCADE - ), - ), - ( - "switch", - models.ForeignKey(related_name="ports", to="topologie.Switch", on_delete=models.CASCADE), - ), - ], - ), - migrations.AlterUniqueTogether( - name="port", unique_together=set([("_content_type", "_object_id")]) - ), - ] diff --git a/topologie/migrations/0002_foreign_keys.py b/topologie/migrations/0002_foreign_keys.py index 9b2eb304..55a26270 100644 --- a/topologie/migrations/0002_foreign_keys.py +++ b/topologie/migrations/0002_foreign_keys.py @@ -14,425 +14,7 @@ class Migration(migrations.Migration): ('preferences', '0001_model_creation'), ('topologie', '0001_model_creation'), ] - replaces = [ - ("users", "0001_initial"), - ("users", "0002_auto_20160630_2301"), - ("users", "0003_listrights_rights"), - ("users", "0004_auto_20160701_2312"), - ("users", "0005_auto_20160702_0006"), - ("users", "0006_ban"), - ("users", "0007_auto_20160702_2322"), - ("users", "0008_user_registered"), - ("users", "0009_user_room"), - ("users", "0010_auto_20160703_1226"), - ("users", "0011_auto_20160703_1227"), - ("users", "0012_auto_20160703_1230"), - ("users", "0013_auto_20160704_1547"), - ("users", "0014_auto_20160704_1548"), - ("users", "0015_whitelist"), - ("users", "0016_auto_20160706_1220"), - ("users", "0017_auto_20160707_0105"), - ("users", "0018_auto_20160707_0115"), - ("users", "0019_auto_20160708_1633"), - ("users", "0020_request"), - ("users", "0021_ldapuser"), - ("users", "0022_ldapuser_sambasid"), - ("users", "0023_auto_20160724_1908"), - ("users", "0024_remove_ldapuser_mac_list"), - ("users", "0025_listshell"), - ("users", "0026_user_shell"), - ("users", "0027_auto_20160726_0216"), - ("users", "0028_auto_20160726_0227"), - ("users", "0029_auto_20160726_0229"), - ("users", "0030_auto_20160726_0357"), - ("users", "0031_auto_20160726_0359"), - ("users", "0032_auto_20160727_2122"), - ("users", "0033_remove_ldapuser_loginshell"), - ("users", "0034_auto_20161018_0037"), - ("users", "0035_auto_20161018_0046"), - ("users", "0036_auto_20161022_2146"), - ("users", "0037_auto_20161028_1906"), - ("users", "0038_auto_20161031_0258"), - ("users", "0039_auto_20161119_0033"), - ("users", "0040_auto_20161119_1709"), - ("users", "0041_listright_details"), - ("users", "0042_auto_20161126_2028"), - ("users", "0043_auto_20161224_1156"), - ("users", "0043_ban_state"), - ("users", "0044_user_ssh_public_key"), - ("users", "0045_merge"), - ("users", "0046_auto_20170617_1433"), - ("users", "0047_auto_20170618_0156"), - ("users", "0048_auto_20170618_0210"), - ("users", "0049_auto_20170618_1424"), - ("users", "0050_serviceuser_comment"), - ("users", "0051_user_telephone"), - ("users", "0052_ldapuser_shadowexpire"), - ("users", "0053_auto_20170626_2105"), - ("users", "0054_auto_20170626_2219"), - ("users", "0055_auto_20171003_0556"), - ("users", "0056_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ("users", "0058_auto_20171025_0154"), - ("users", "0059_auto_20171025_1854"), - ("users", "0060_auto_20171120_0317"), - ("users", "0061_auto_20171230_2033"), - ("users", "0062_auto_20171231_0056"), - ("users", "0063_auto_20171231_0140"), - ("users", "0064_auto_20171231_0150"), - ("users", "0065_auto_20171231_2053"), - ("users", "0066_grouppermissions"), - ("users", "0067_serveurpermission"), - ("users", "0068_auto_20180107_2245"), - ("users", "0069_club_mailing"), - ("users", "0070_auto_20180324_1906"), - ("users", "0071_auto_20180415_1252"), - ("users", "0072_auto_20180426_2021"), - ("users", "0073_auto_20180629_1614"), - ("users", "0074_auto_20180810_2104"), - ("users", "0074_auto_20180814_1059"), - ("users", "0075_merge_20180815_2202"), - ("users", "0076_auto_20180818_1321"), - ("users", "0077_auto_20180824_1750"), - ("users", "0078_auto_20181011_1405"), - ("users", "0079_auto_20181228_2039"), - ("users", "0080_auto_20190108_1726"), - ("users", "0081_auto_20190317_0302"), - ("users", "0082_auto_20190908_1338"), - ("users", "0083_user_shortcuts_enabled"), - ("users", "0084_auto_20191120_0159"), - ("users", "0085_user_email_state"), - ("users", "0086_user_email_change_date"), - ("users", "0087_request_email"), - ("users", "0088_auto_20200417_2312"), - ("users", "0089_auto_20200418_0112"), - ("users", "0090_auto_20200421_1825"), - ("users", "0091_auto_20200423_1256"), - ("users", "0092_auto_20200502_0057"), - ("users", "0093_user_profile_image"), - ("users", "0094_remove_user_profile_image"), - ("users", "0095_user_theme"), - ("users", "0096_auto_20210110_1811"), - ("cotisations", "0001_initial"), - ("cotisations", "0002_remove_facture_article"), - ("cotisations", "0003_auto_20160702_1448"), - ("cotisations", "0004_auto_20160702_1528"), - ("cotisations", "0005_auto_20160702_1532"), - ("cotisations", "0006_auto_20160702_1534"), - ("cotisations", "0007_auto_20160702_1543"), - ("cotisations", "0008_auto_20160702_1614"), - ("cotisations", "0009_remove_cotisation_user"), - ("cotisations", "0010_auto_20160702_1840"), - ("cotisations", "0011_auto_20160702_1911"), - ("cotisations", "0012_auto_20160704_0118"), - ("cotisations", "0013_auto_20160711_2240"), - ("cotisations", "0014_auto_20160712_0245"), - ("cotisations", "0015_auto_20160714_2142"), - ("cotisations", "0016_auto_20160715_0110"), - ("cotisations", "0017_auto_20170718_2329"), - ("cotisations", "0018_paiement_type_paiement"), - ("cotisations", "0019_auto_20170819_0055"), - ("cotisations", "0020_auto_20170819_0057"), - ("cotisations", "0021_auto_20170819_0104"), - ("cotisations", "0022_auto_20170824_0128"), - ("cotisations", "0023_auto_20170902_1303"), - ("cotisations", "0024_auto_20171015_2033"), - ("cotisations", "0025_article_type_user"), - ("cotisations", "0026_auto_20171028_0126"), - ("cotisations", "0027_auto_20171029_1156"), - ("cotisations", "0028_auto_20171231_0007"), - ("cotisations", "0029_auto_20180414_2056"), - ("cotisations", "0030_custom_payment"), - ("cotisations", "0031_comnpaypayment_production"), - ("cotisations", "0032_custom_invoice"), - ("cotisations", "0033_auto_20180818_1319"), - ("cotisations", "0034_auto_20180831_1532"), - ("cotisations", "0035_notepayment"), - ("cotisations", "0036_custominvoice_remark"), - ("cotisations", "0037_costestimate"), - ("cotisations", "0038_auto_20181231_1657"), - ("cotisations", "0039_freepayment"), - ("cotisations", "0040_auto_20191002_2335"), - ("cotisations", "0041_auto_20191103_2131"), - ("cotisations", "0042_auto_20191120_0159"), - ("cotisations", "0043_separation_membership_connection_p1"), - ("cotisations", "0044_separation_membership_connection_p2"), - ("cotisations", "0045_separation_membership_connection_p3"), - ("cotisations", "0046_article_need_membership"), - ("cotisations", "0047_article_need_membership_init"), - ("cotisations", "0048_auto_20201017_0018"), - ("cotisations", "0049_auto_20201102_2305"), - ("cotisations", "0050_auto_20201102_2342"), - ("cotisations", "0051_auto_20201228_1636"), - ("machines", "0001_initial"), - ("machines", "0002_auto_20160703_1444"), - ("machines", "0003_auto_20160703_1450"), - ("machines", "0004_auto_20160703_1451"), - ("machines", "0005_auto_20160703_1523"), - ("machines", "0006_auto_20160703_1813"), - ("machines", "0007_auto_20160703_1816"), - ("machines", "0008_remove_interface_ipv6"), - ("machines", "0009_auto_20160703_2358"), - ("machines", "0010_auto_20160704_0104"), - ("machines", "0011_auto_20160704_0105"), - ("machines", "0012_auto_20160704_0118"), - ("machines", "0013_auto_20160705_1014"), - ("machines", "0014_auto_20160706_1220"), - ("machines", "0015_auto_20160707_0105"), - ("machines", "0016_auto_20160708_1633"), - ("machines", "0017_auto_20160708_1645"), - ("machines", "0018_auto_20160708_1813"), - ("machines", "0019_auto_20160718_1141"), - ("machines", "0020_auto_20160718_1849"), - ("machines", "0021_auto_20161006_1943"), - ("machines", "0022_auto_20161011_1829"), - ("machines", "0023_iplist_ip_type"), - ("machines", "0024_machinetype_need_infra"), - ("machines", "0025_auto_20161023_0038"), - ("machines", "0026_auto_20161026_1348"), - ("machines", "0027_alias"), - ("machines", "0028_iptype_domaine_ip"), - ("machines", "0029_iptype_domaine_range"), - ("machines", "0030_auto_20161118_1730"), - ("machines", "0031_auto_20161119_1709"), - ("machines", "0032_auto_20161119_1850"), - ("machines", "0033_extension_need_infra"), - ("machines", "0034_iplist_need_infra"), - ("machines", "0035_auto_20161224_1201"), - ("machines", "0036_auto_20161224_1204"), - ("machines", "0037_domain_cname"), - ("machines", "0038_auto_20161224_1721"), - ("machines", "0039_auto_20161224_1732"), - ("machines", "0040_remove_interface_dns"), - ("machines", "0041_remove_ns_interface"), - ("machines", "0042_ns_ns"), - ("machines", "0043_auto_20170721_0350"), - ("machines", "0044_auto_20170808_0233"), - ("machines", "0045_auto_20170808_0348"), - ("machines", "0046_auto_20170808_1423"), - ("machines", "0047_auto_20170809_0606"), - ("machines", "0048_auto_20170823_2315"), - ("machines", "0049_vlan"), - ("machines", "0050_auto_20170826_0022"), - ("machines", "0051_iptype_vlan"), - ("machines", "0052_auto_20170828_2322"), - ("machines", "0053_text"), - ("machines", "0054_text_zone"), - ("machines", "0055_nas"), - ("machines", "0056_nas_port_access_mode"), - ("machines", "0057_nas_autocapture_mac"), - ("machines", "0058_auto_20171002_0350"), - ("machines", "0059_iptype_prefix_v6"), - ("machines", "0060_iptype_ouverture_ports"), - ("machines", "0061_auto_20171015_2033"), - ("machines", "0062_extension_origin_v6"), - ("machines", "0063_auto_20171020_0040"), - ("machines", "0064_auto_20171115_0253"), - ("machines", "0065_auto_20171115_1514"), - ("machines", "0066_srv"), - ("machines", "0067_auto_20171116_0152"), - ("machines", "0068_auto_20171116_0252"), - ("machines", "0069_auto_20171116_0822"), - ("machines", "0070_auto_20171231_1947"), - ("machines", "0071_auto_20171231_2100"), - ("machines", "0072_auto_20180108_1822"), - ("machines", "0073_auto_20180128_2203"), - ("machines", "0074_auto_20180129_0352"), - ("machines", "0075_auto_20180130_0052"), - ("machines", "0076_auto_20180130_1623"), - ("machines", "0077_auto_20180409_2243"), - ("machines", "0078_auto_20180415_1252"), - ("machines", "0079_auto_20180416_0107"), - ("machines", "0080_auto_20180502_2334"), - ("machines", "0081_auto_20180521_1413"), - ("machines", "0082_auto_20180525_2209"), - ("machines", "0083_remove_duplicate_rights"), - ("machines", "0084_dname"), - ("machines", "0085_sshfingerprint"), - ("machines", "0086_role"), - ("machines", "0087_dnssec"), - ("machines", "0088_iptype_prefix_v6_length"), - ("machines", "0089_auto_20180805_1148"), - ("machines", "0090_auto_20180805_1459"), - ("machines", "0091_auto_20180806_2310"), - ("machines", "0092_auto_20180807_0926"), - ("machines", "0093_auto_20180807_1115"), - ("machines", "0094_auto_20180815_1918"), - ("machines", "0095_auto_20180919_2225"), - ("machines", "0096_auto_20181013_1417"), - ("machines", "0097_extension_dnssec"), - ("machines", "0098_auto_20190102_1745"), - ("machines", "0099_role_recursive_dns"), - ("machines", "0100_auto_20190102_1753"), - ("machines", "0101_auto_20190108_1623"), - ("machines", "0102_auto_20190303_1611"), - ("machines", "0103_auto_20191002_2222"), - ("machines", "0104_auto_20191002_2231"), - ("machines", "0105_dname_ttl"), - ("machines", "0106_auto_20191120_0159"), - ("machines", "0107_fix_lowercase_domain"), - ("machines", "0108_ipv6list_active"), - ("preferences", "0001_initial"), - ("preferences", "0002_auto_20170625_1923"), - ("preferences", "0003_optionaluser_solde_negatif"), - ("preferences", "0004_assooption_services"), - ("preferences", "0005_auto_20170824_0139"), - ("preferences", "0006_auto_20170824_0143"), - ("preferences", "0007_auto_20170824_2056"), - ("preferences", "0008_auto_20170824_2122"), - ("preferences", "0009_assooption_utilisateur_asso"), - ("preferences", "0010_auto_20170825_0459"), - ("preferences", "0011_auto_20170825_2307"), - ("preferences", "0012_generaloption_req_expire_hrs"), - ("preferences", "0013_generaloption_site_name"), - ("preferences", "0014_generaloption_email_from"), - ("preferences", "0015_optionaltopologie_radius_general_policy"), - ("preferences", "0016_auto_20170902_1520"), - ("preferences", "0017_mailmessageoption"), - ("preferences", "0018_optionaltopologie_mac_autocapture"), - ("preferences", "0019_remove_optionaltopologie_mac_autocapture"), - ("preferences", "0020_optionalmachine_ipv6"), - ("preferences", "0021_auto_20171015_1741"), - ("preferences", "0022_auto_20171015_1758"), - ("preferences", "0023_auto_20171015_2033"), - ("preferences", "0024_optionaluser_all_can_create"), - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0025_generaloption_general_message"), - ("preferences", "0026_auto_20171216_0401"), - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0028_assooption_description"), - ("preferences", "0028_auto_20180111_1129"), - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0029_auto_20180111_1134"), - ("preferences", "0029_auto_20180318_0213"), - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0030_auto_20180111_2346"), - ("preferences", "0030_merge_20180320_1419"), - ("preferences", "0031_auto_20180323_0218"), - ("preferences", "0031_optionaluser_self_adhesion"), - ("preferences", "0032_optionaluser_min_online_payment"), - ("preferences", "0032_optionaluser_shell_default"), - ("preferences", "0033_accueiloption"), - ("preferences", "0033_generaloption_gtu_sum_up"), - ("preferences", "0034_auto_20180114_2025"), - ("preferences", "0034_auto_20180416_1120"), - ("preferences", "0035_auto_20180114_2132"), - ("preferences", "0035_optionaluser_allow_self_subscription"), - ("preferences", "0036_auto_20180114_2141"), - ("preferences", "0037_auto_20180114_2156"), - ("preferences", "0038_auto_20180114_2209"), - ("preferences", "0039_auto_20180115_0003"), - ("preferences", "0040_auto_20180129_1745"), - ("preferences", "0041_merge_20180130_0052"), - ("preferences", "0042_auto_20180222_1743"), - ("preferences", "0043_optionalmachine_create_machine"), - ("preferences", "0044_remove_payment_pass"), - ("preferences", "0045_remove_unused_payment_fields"), - ("preferences", "0046_optionaluser_mail_extension"), - ("preferences", "0047_mailcontact"), - ("preferences", "0048_auto_20180811_1515"), - ("preferences", "0049_optionaluser_self_change_shell"), - ("preferences", "0050_auto_20180818_1329"), - ("preferences", "0051_auto_20180919_2225"), - ("preferences", "0052_optionaluser_delete_notyetactive"), - ("preferences", "0053_optionaluser_self_change_room"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ("preferences", "0056_2_radiusoption"), - ("preferences", "0056_3_radiusoption"), - ("preferences", "0056_4_radiusoption"), - ("preferences", "0057_optionaluser_all_users_active"), - ("preferences", "0058_auto_20190108_1650"), - ("preferences", "0059_auto_20190120_1739"), - ("preferences", "0060_auto_20190712_1821"), - ("preferences", "0061_optionaluser_allow_archived_connexion"), - ("preferences", "0062_auto_20190910_1909"), - ("preferences", "0063_mandate"), - ("preferences", "0064_auto_20191008_1335"), - ("preferences", "0065_auto_20191010_1227"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ("preferences", "0067_auto_20191120_0159"), - ("preferences", "0068_optionaluser_allow_set_password_during_user_creation"), - ("preferences", "0069_optionaluser_disable_emailnotyetconfirmed"), - ("preferences", "0070_auto_20200419_0225"), - ("preferences", "0071_optionaluser_self_change_pseudo"), - ("topologie", "0001_initial"), - ("topologie", "0002_auto_20160703_1118"), - ("topologie", "0003_room"), - ("topologie", "0004_auto_20160703_1122"), - ("topologie", "0005_auto_20160703_1123"), - ("topologie", "0006_auto_20160703_1129"), - ("topologie", "0007_auto_20160703_1148"), - ("topologie", "0008_port_room"), - ("topologie", "0009_auto_20160703_1200"), - ("topologie", "0010_auto_20160704_2148"), - ("topologie", "0011_auto_20160704_2153"), - ("topologie", "0012_port_machine_interface"), - ("topologie", "0013_port_related"), - ("topologie", "0014_auto_20160706_1238"), - ("topologie", "0015_auto_20160706_1452"), - ("topologie", "0016_auto_20160706_1531"), - ("topologie", "0017_auto_20160718_1141"), - ("topologie", "0018_room_details"), - ("topologie", "0019_auto_20161026_1348"), - ("topologie", "0020_auto_20161119_0033"), - ("topologie", "0021_port_radius"), - ("topologie", "0022_auto_20161211_1622"), - ("topologie", "0023_auto_20170817_1654"), - ("topologie", "0023_auto_20170826_1530"), - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ("topologie", "0025_merge_20170902_1242"), - ("topologie", "0026_auto_20170902_1245"), - ("topologie", "0027_auto_20170905_1442"), - ("topologie", "0028_auto_20170913_1503"), - ("topologie", "0029_auto_20171002_0334"), - ("topologie", "0030_auto_20171004_0235"), - ("topologie", "0031_auto_20171015_2033"), - ("topologie", "0032_auto_20171026_0338"), - ("topologie", "0033_auto_20171231_1743"), - ("topologie", "0034_borne"), - ("topologie", "0035_auto_20180324_0023"), - ("topologie", "0036_transferborne"), - ("topologie", "0037_auto_20180325_0127"), - ("topologie", "0038_transfersw"), - ("topologie", "0039_port_new_switch"), - ("topologie", "0040_transferports"), - ("topologie", "0041_transferportsw"), - ("topologie", "0042_transferswitch"), - ("topologie", "0043_renamenewswitch"), - ("topologie", "0044_auto_20180326_0002"), - ("topologie", "0045_auto_20180326_0123"), - ("topologie", "0046_auto_20180326_0129"), - ("topologie", "0047_ap_machine"), - ("topologie", "0048_ap_machine"), - ("topologie", "0049_switchs_machine"), - ("topologie", "0050_port_new_switch"), - ("topologie", "0051_switchs_machine"), - ("topologie", "0052_transferports"), - ("topologie", "0053_finalsw"), - ("topologie", "0054_auto_20180326_1742"), - ("topologie", "0055_auto_20180329_0431"), - ("topologie", "0056_building_switchbay"), - ("topologie", "0057_auto_20180408_0316"), - ("topologie", "0058_remove_switch_location"), - ("topologie", "0059_auto_20180415_2249"), - ("topologie", "0060_server"), - ("topologie", "0061_portprofile"), - ("topologie", "0062_auto_20180815_1918"), - ("topologie", "0063_auto_20180919_2225"), - ("topologie", "0064_switch_automatic_provision"), - ("topologie", "0065_auto_20180927_1836"), - ("topologie", "0066_modelswitch_commercial_name"), - ("topologie", "0067_auto_20181230_1819"), - ("topologie", "0068_auto_20190102_1758"), - ("topologie", "0069_auto_20190108_1439"), - ("topologie", "0070_auto_20190218_1743"), - ("topologie", "0071_auto_20190218_1936"), - ("topologie", "0072_auto_20190720_2318"), - ("topologie", "0073_auto_20191120_0159"), - ("topologie", "0074_auto_20200419_1640"), - ] + operations = [ migrations.AddField( diff --git a/topologie/migrations/0003_room.py b/topologie/migrations/0003_room.py deleted file mode 100644 index 0a566be4..00000000 --- a/topologie/migrations/0003_room.py +++ /dev/null @@ -1,51 +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 = [("topologie", "0002_auto_20160703_1118")] - - operations = [ - migrations.CreateModel( - name="Room", - fields=[ - ( - "id", - models.AutoField( - serialize=False, - auto_created=True, - verbose_name="ID", - primary_key=True, - ), - ), - ("details", models.CharField(max_length=255, blank=True)), - ("building", models.CharField(max_length=255, unique=True)), - ("number", models.IntegerField()), - ], - ) - ] diff --git a/topologie/migrations/0004_auto_20160703_1122.py b/topologie/migrations/0004_auto_20160703_1122.py deleted file mode 100644 index 1215cd28..00000000 --- a/topologie/migrations/0004_auto_20160703_1122.py +++ /dev/null @@ -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 = [("topologie", "0003_room")] - - operations = [ - migrations.AlterUniqueTogether( - name="switch", unique_together=set([("building", "number")]) - ) - ] diff --git a/topologie/migrations/0005_auto_20160703_1123.py b/topologie/migrations/0005_auto_20160703_1123.py deleted file mode 100644 index dccdea29..00000000 --- a/topologie/migrations/0005_auto_20160703_1123.py +++ /dev/null @@ -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 = [("topologie", "0004_auto_20160703_1122")] - - operations = [ - migrations.AlterUniqueTogether( - name="room", unique_together=set([("building", "number")]) - ) - ] diff --git a/topologie/migrations/0006_auto_20160703_1129.py b/topologie/migrations/0006_auto_20160703_1129.py deleted file mode 100644 index 00f4f280..00000000 --- a/topologie/migrations/0006_auto_20160703_1129.py +++ /dev/null @@ -1,49 +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 = [("topologie", "0005_auto_20160703_1123")] - - operations = [ - migrations.AddField( - model_name="room", - name="room", - field=models.IntegerField(default=1), - preserve_default=False, - ), - migrations.AlterField( - model_name="room", name="building", field=models.CharField(max_length=255) - ), - migrations.AlterField( - model_name="room", name="number", field=models.IntegerField(blank=True) - ), - migrations.AlterUniqueTogether( - name="room", unique_together=set([("building", "room", "number")]) - ), - ] diff --git a/topologie/migrations/0007_auto_20160703_1148.py b/topologie/migrations/0007_auto_20160703_1148.py deleted file mode 100644 index 37226fb1..00000000 --- a/topologie/migrations/0007_auto_20160703_1148.py +++ /dev/null @@ -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 = [("topologie", "0006_auto_20160703_1129")] - - operations = [ - migrations.AlterField( - model_name="room", - name="number", - field=models.IntegerField(null=True, blank=True), - ) - ] diff --git a/topologie/migrations/0008_port_room.py b/topologie/migrations/0008_port_room.py deleted file mode 100644 index 58891714..00000000 --- a/topologie/migrations/0008_port_room.py +++ /dev/null @@ -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 = [("topologie", "0007_auto_20160703_1148")] - - operations = [ - migrations.AddField( - model_name="port", - name="room", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - blank=True, - default=1, - to="topologie.Room", - ), - preserve_default=False, - ) - ] diff --git a/topologie/migrations/0009_auto_20160703_1200.py b/topologie/migrations/0009_auto_20160703_1200.py deleted file mode 100644 index 6252c979..00000000 --- a/topologie/migrations/0009_auto_20160703_1200.py +++ /dev/null @@ -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 = [("topologie", "0008_port_room")] - - operations = [ - migrations.AlterField( - model_name="port", - name="room", - field=models.ForeignKey( - to="topologie.Room", - on_delete=django.db.models.deletion.PROTECT, - blank=True, - null=True, - ), - ) - ] diff --git a/topologie/migrations/0010_auto_20160704_2148.py b/topologie/migrations/0010_auto_20160704_2148.py deleted file mode 100644 index 6c2d4b3f..00000000 --- a/topologie/migrations/0010_auto_20160704_2148.py +++ /dev/null @@ -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 = [("topologie", "0009_auto_20160703_1200")] - - operations = [ - migrations.RenameField(model_name="room", old_name="building", new_name="name"), - migrations.AlterUniqueTogether(name="room", unique_together=set([])), - migrations.RemoveField(model_name="room", name="details"), - migrations.RemoveField(model_name="room", name="number"), - migrations.RemoveField(model_name="room", name="room"), - ] diff --git a/topologie/migrations/0011_auto_20160704_2153.py b/topologie/migrations/0011_auto_20160704_2153.py deleted file mode 100644 index be495ad4..00000000 --- a/topologie/migrations/0011_auto_20160704_2153.py +++ /dev/null @@ -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 = [("topologie", "0010_auto_20160704_2148")] - - operations = [ - migrations.AlterField( - model_name="room", - name="name", - field=models.CharField(max_length=255, unique=True), - ) - ] diff --git a/topologie/migrations/0012_port_machine_interface.py b/topologie/migrations/0012_port_machine_interface.py deleted file mode 100644 index b720a1ba..00000000 --- a/topologie/migrations/0012_port_machine_interface.py +++ /dev/null @@ -1,48 +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", "0014_auto_20160706_1220"), - ("topologie", "0011_auto_20160704_2153"), - ] - - operations = [ - migrations.AddField( - model_name="port", - name="machine_interface", - field=models.OneToOneField( - on_delete=django.db.models.deletion.PROTECT, - null=True, - blank=True, - to="machines.Interface", - ), - ) - ] diff --git a/topologie/migrations/0013_port_related.py b/topologie/migrations/0013_port_related.py deleted file mode 100644 index 08b0643d..00000000 --- a/topologie/migrations/0013_port_related.py +++ /dev/null @@ -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 = [("topologie", "0012_port_machine_interface")] - - operations = [ - migrations.AddField( - model_name="port", - name="related", - field=models.OneToOneField( - null=True, to="topologie.Port", blank=True, related_name="related_port", on_delete=models.CASCADE - ), - ) - ] diff --git a/topologie/migrations/0014_auto_20160706_1238.py b/topologie/migrations/0014_auto_20160706_1238.py deleted file mode 100644 index 8649f5cd..00000000 --- a/topologie/migrations/0014_auto_20160706_1238.py +++ /dev/null @@ -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 = [("topologie", "0013_port_related")] - - operations = [ - migrations.AlterUniqueTogether( - name="port", unique_together=set([("switch", "port")]) - ), - migrations.RemoveField(model_name="port", name="_content_type"), - migrations.RemoveField(model_name="port", name="_object_id"), - ] diff --git a/topologie/migrations/0015_auto_20160706_1452.py b/topologie/migrations/0015_auto_20160706_1452.py deleted file mode 100644 index 4f00811c..00000000 --- a/topologie/migrations/0015_auto_20160706_1452.py +++ /dev/null @@ -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 = [("topologie", "0014_auto_20160706_1238")] - - operations = [ - migrations.RemoveField(model_name="port", name="related"), - migrations.AddField( - model_name="port", - name="related", - field=models.ManyToManyField( - related_name="_port_related_+", to="topologie.Port", blank=True - ), - ), - ] diff --git a/topologie/migrations/0016_auto_20160706_1531.py b/topologie/migrations/0016_auto_20160706_1531.py deleted file mode 100644 index fa69dd68..00000000 --- a/topologie/migrations/0016_auto_20160706_1531.py +++ /dev/null @@ -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 = [("topologie", "0015_auto_20160706_1452")] - - operations = [ - migrations.RemoveField(model_name="port", name="related"), - migrations.AddField( - model_name="port", - name="related", - field=models.OneToOneField( - blank=True, to="topologie.Port", related_name="related_port", null=True, on_delete=models.CASCADE - ), - ), - ] diff --git a/topologie/migrations/0017_auto_20160718_1141.py b/topologie/migrations/0017_auto_20160718_1141.py deleted file mode 100644 index 4ed5ee76..00000000 --- a/topologie/migrations/0017_auto_20160718_1141.py +++ /dev/null @@ -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 = [("topologie", "0016_auto_20160706_1531")] - - operations = [ - migrations.AlterField( - model_name="port", - name="machine_interface", - field=models.OneToOneField( - to="machines.Interface", - on_delete=django.db.models.deletion.SET_NULL, - null=True, - blank=True, - ), - ) - ] diff --git a/topologie/migrations/0018_room_details.py b/topologie/migrations/0018_room_details.py deleted file mode 100644 index 8c7b5f80..00000000 --- a/topologie/migrations/0018_room_details.py +++ /dev/null @@ -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 = [("topologie", "0017_auto_20160718_1141")] - - operations = [ - migrations.AddField( - model_name="room", - name="details", - field=models.CharField(blank=True, max_length=255), - ) - ] diff --git a/topologie/migrations/0019_auto_20161026_1348.py b/topologie/migrations/0019_auto_20161026_1348.py deleted file mode 100644 index 8bcdae8d..00000000 --- a/topologie/migrations/0019_auto_20161026_1348.py +++ /dev/null @@ -1,51 +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"), - ("topologie", "0018_room_details"), - ] - - operations = [ - migrations.AddField( - model_name="switch", - name="location", - field=models.CharField(default="test", max_length=255), - preserve_default=False, - ), - migrations.AddField( - model_name="switch", - name="switch_interface", - field=models.OneToOneField(default=1, to="machines.Interface", on_delete=models.CASCADE), - preserve_default=False, - ), - migrations.AlterUniqueTogether(name="switch", unique_together=set([])), - migrations.RemoveField(model_name="switch", name="building"), - ] diff --git a/topologie/migrations/0020_auto_20161119_0033.py b/topologie/migrations/0020_auto_20161119_0033.py deleted file mode 100644 index 6f2db9cc..00000000 --- a/topologie/migrations/0020_auto_20161119_0033.py +++ /dev/null @@ -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 = [("topologie", "0019_auto_20161026_1348")] - - operations = [ - migrations.AlterField( - model_name="port", - name="machine_interface", - field=models.ForeignKey( - blank=True, - to="machines.Interface", - null=True, - on_delete=django.db.models.deletion.SET_NULL, - ), - ) - ] diff --git a/topologie/migrations/0021_port_radius.py b/topologie/migrations/0021_port_radius.py deleted file mode 100644 index 7f56ed13..00000000 --- a/topologie/migrations/0021_port_radius.py +++ /dev/null @@ -1,52 +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 = [("topologie", "0020_auto_20161119_0033")] - - operations = [ - migrations.AddField( - model_name="port", - name="radius", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - (7, 7), - (8, 8), - (42, 42), - (69, 69), - ], - max_length=32, - default="NO", - ), - ) - ] diff --git a/topologie/migrations/0022_auto_20161211_1622.py b/topologie/migrations/0022_auto_20161211_1622.py deleted file mode 100644 index 20e196be..00000000 --- a/topologie/migrations/0022_auto_20161211_1622.py +++ /dev/null @@ -1,52 +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 = [("topologie", "0021_port_radius")] - - operations = [ - migrations.AlterField( - model_name="port", - name="radius", - field=models.CharField( - max_length=32, - default="NO", - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - ("7", "7"), - ("8", "8"), - ("42", "42"), - ("69", "69"), - ], - ), - ) - ] diff --git a/topologie/migrations/0023_auto_20170817_1654.py b/topologie/migrations/0023_auto_20170817_1654.py deleted file mode 100644 index 6808e576..00000000 --- a/topologie/migrations/0023_auto_20170817_1654.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-17 14:54 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0022_auto_20161211_1622")] - - operations = [ - migrations.CreateModel( - name="Stack", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(blank=True, max_length=32, null=True)), - ("stack_id", models.CharField(max_length=32, unique=True)), - ("details", models.CharField(blank=True, max_length=255, null=True)), - ("member_id_min", models.IntegerField()), - ("member_id_max", models.IntegerField()), - ], - ), - migrations.AddField( - model_name="switch", - name="stack_member_id", - field=models.IntegerField(blank=True, null=True), - ), - migrations.AddField( - model_name="switch", - name="stack", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.CASCADE, - to="topologie.Stack", - ), - ), - migrations.AlterUniqueTogether( - name="switch", unique_together=set([("stack", "stack_member_id")]) - ), - ] diff --git a/topologie/migrations/0023_auto_20170826_1530.py b/topologie/migrations/0023_auto_20170826_1530.py deleted file mode 100644 index ed879cff..00000000 --- a/topologie/migrations/0023_auto_20170826_1530.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-26 13:30 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0022_auto_20161211_1622")] - - operations = [ - migrations.AlterField( - model_name="port", - name="radius", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - ("3", "3"), - ("7", "7"), - ("8", "8"), - ("13", "13"), - ("20", "20"), - ("42", "42"), - ("69", "69"), - ], - default="NO", - max_length=32, - ), - ) - ] diff --git a/topologie/migrations/0024_auto_20170818_1021.py b/topologie/migrations/0024_auto_20170818_1021.py deleted file mode 100644 index 4caf7d3e..00000000 --- a/topologie/migrations/0024_auto_20170818_1021.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-18 08:21 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0023_auto_20170817_1654")] - - operations = [ - migrations.AlterField( - model_name="switch", - name="stack", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.Stack", - ), - ) - ] diff --git a/topologie/migrations/0024_auto_20170826_1800.py b/topologie/migrations/0024_auto_20170826_1800.py deleted file mode 100644 index ee1ea2d2..00000000 --- a/topologie/migrations/0024_auto_20170826_1800.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-08-26 16:00 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0023_auto_20170826_1530")] - - operations = [ - migrations.AlterField( - model_name="port", - name="radius", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - ], - default="NO", - max_length=32, - ), - ) - ] diff --git a/topologie/migrations/0025_merge_20170902_1242.py b/topologie/migrations/0025_merge_20170902_1242.py deleted file mode 100644 index 52a5a365..00000000 --- a/topologie/migrations/0025_merge_20170902_1242.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-02 10:42 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ] - - operations = [] diff --git a/topologie/migrations/0026_auto_20170902_1245.py b/topologie/migrations/0026_auto_20170902_1245.py deleted file mode 100644 index d7389554..00000000 --- a/topologie/migrations/0026_auto_20170902_1245.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-02 10:45 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0025_merge_20170902_1242")] - - operations = [ - migrations.AlterField( - model_name="port", - name="radius", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - ("3", "3"), - ("7", "7"), - ("8", "8"), - ("13", "13"), - ("20", "20"), - ("42", "42"), - ("69", "69"), - ], - default="NO", - max_length=32, - ), - ) - ] diff --git a/topologie/migrations/0027_auto_20170905_1442.py b/topologie/migrations/0027_auto_20170905_1442.py deleted file mode 100644 index 7a33fab9..00000000 --- a/topologie/migrations/0027_auto_20170905_1442.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-05 12:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0026_auto_20170902_1245")] - - operations = [ - migrations.AlterModelOptions(name="room", options={"ordering": ["name"]}), - migrations.AlterField( - model_name="port", - name="radius", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - ], - default="NO", - max_length=32, - ), - ), - ] diff --git a/topologie/migrations/0028_auto_20170913_1503.py b/topologie/migrations/0028_auto_20170913_1503.py deleted file mode 100644 index 5ab48720..00000000 --- a/topologie/migrations/0028_auto_20170913_1503.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-09-13 13:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0027_auto_20170905_1442")] - - operations = [ - migrations.AlterField( - model_name="port", - name="radius", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - ("2", "2"), - ("4", "4"), - ("5", "5"), - ("6", "6"), - ("7", "7"), - ("20", "20"), - ], - default="NO", - max_length=32, - ), - ) - ] diff --git a/topologie/migrations/0029_auto_20171002_0334.py b/topologie/migrations/0029_auto_20171002_0334.py deleted file mode 100644 index 09b3466a..00000000 --- a/topologie/migrations/0029_auto_20171002_0334.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-02 01:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0028_auto_20170913_1503")] - - operations = [ - migrations.AlterField( - model_name="port", - name="radius", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - ("3", "3"), - ("7", "7"), - ("8", "8"), - ("13", "13"), - ("20", "20"), - ("42", "42"), - ("69", "69"), - ], - default="NO", - max_length=32, - ), - ) - ] diff --git a/topologie/migrations/0030_auto_20171004_0235.py b/topologie/migrations/0030_auto_20171004_0235.py deleted file mode 100644 index 8e0989b2..00000000 --- a/topologie/migrations/0030_auto_20171004_0235.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-04 00:35 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0029_auto_20171002_0334"), ("machines", "0049_vlan")] - - operations = [ - migrations.AddField( - model_name="port", - name="vlan_force", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="machines.Vlan", - ), - ), - migrations.AlterField( - model_name="port", - name="radius", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("STRICT", "STRICT"), - ("BLOQ", "BLOQ"), - ("COMMON", "COMMON"), - ], - default="NO", - max_length=32, - ), - ), - ] diff --git a/topologie/migrations/0031_auto_20171015_2033.py b/topologie/migrations/0031_auto_20171015_2033.py deleted file mode 100644 index f222f272..00000000 --- a/topologie/migrations/0031_auto_20171015_2033.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-15 18:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0030_auto_20171004_0235")] - - operations = [ - migrations.AlterField( - model_name="port", name="port", field=models.PositiveIntegerField() - ), - migrations.AlterField( - model_name="stack", - name="member_id_max", - field=models.PositiveIntegerField(), - ), - migrations.AlterField( - model_name="stack", - name="member_id_min", - field=models.PositiveIntegerField(), - ), - migrations.AlterField( - model_name="switch", name="number", field=models.PositiveIntegerField() - ), - migrations.AlterField( - model_name="switch", - name="stack_member_id", - field=models.PositiveIntegerField(blank=True, null=True), - ), - ] diff --git a/topologie/migrations/0032_auto_20171026_0338.py b/topologie/migrations/0032_auto_20171026_0338.py deleted file mode 100644 index cb0f6e88..00000000 --- a/topologie/migrations/0032_auto_20171026_0338.py +++ /dev/null @@ -1,61 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-26 01:38 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0031_auto_20171015_2033")] - - operations = [ - migrations.CreateModel( - name="ConstructorSwitch", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=255)), - ], - ), - migrations.CreateModel( - name="ModelSwitch", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("reference", models.CharField(max_length=255)), - ( - "constructor", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - to="topologie.ConstructorSwitch", - ), - ), - ], - ), - migrations.AddField( - model_name="switch", - name="model", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.ModelSwitch", - ), - ), - ] diff --git a/topologie/migrations/0033_auto_20171231_1743.py b/topologie/migrations/0033_auto_20171231_1743.py deleted file mode 100644 index 9e36c82e..00000000 --- a/topologie/migrations/0033_auto_20171231_1743.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 16:43 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0032_auto_20171026_0338")] - - operations = [ - migrations.AlterModelOptions( - name="constructorswitch", - options={ - "permissions": ( - ("view_constructorswitch", "Peut voir un objet constructorswitch"), - ) - }, - ), - migrations.AlterModelOptions( - name="modelswitch", - options={ - "permissions": (("view_modelswitch", "Peut voir un objet modelswitch"),) - }, - ), - migrations.AlterModelOptions( - name="port", - options={"permissions": (("view_port", "Peut voir un objet port"),)}, - ), - migrations.AlterModelOptions( - name="room", - options={ - "ordering": ["name"], - "permissions": (("view_room", "Peut voir un objet chambre"),), - }, - ), - migrations.AlterModelOptions( - name="stack", - options={"permissions": (("view_stack", "Peut voir un objet stack"),)}, - ), - migrations.AlterModelOptions( - name="switch", - options={"permissions": (("view_switch", "Peut voir un objet switch"),)}, - ), - ] diff --git a/topologie/migrations/0034_borne.py b/topologie/migrations/0034_borne.py deleted file mode 100644 index 3365b451..00000000 --- a/topologie/migrations/0034_borne.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-23 01:18 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0076_auto_20180130_1623"), - ("topologie", "0033_auto_20171231_1743"), - ] - - operations = [ - migrations.CreateModel( - name="Borne", - fields=[ - ( - "interface_ptr", - models.OneToOneField( - auto_created=True, - on_delete=django.db.models.deletion.CASCADE, - parent_link=True, - primary_key=True, - serialize=False, - to="machines.Interface", - ), - ), - ( - "location", - models.CharField( - help_text="Détails sur la localisation de l'AP", max_length=255 - ), - ), - ], - options={"permissions": (("view_borne", "Peut voir une borne"),)}, - bases=("machines.interface",), - ) - ] diff --git a/topologie/migrations/0035_auto_20180324_0023.py b/topologie/migrations/0035_auto_20180324_0023.py deleted file mode 100644 index 419aa82f..00000000 --- a/topologie/migrations/0035_auto_20180324_0023.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-23 23:23 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0034_borne")] - - operations = [ - migrations.AlterField( - model_name="borne", - name="location", - field=models.CharField( - blank=True, - help_text="Détails sur la localisation de l'AP", - max_length=255, - null=True, - ), - ) - ] diff --git a/topologie/migrations/0036_transferborne.py b/topologie/migrations/0036_transferborne.py deleted file mode 100644 index b3603c36..00000000 --- a/topologie/migrations/0036_transferborne.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0035_auto_20180324_0023")] - - def transfer_bornes(apps, schema_editor): - db_alias = schema_editor.connection.alias - machinetype = apps.get_model("machines", "MachineType") - borne = apps.get_model("topologie", "Borne") - interface = apps.get_model("machines", "Interface") - bornes_list = machinetype.objects.using(db_alias).filter( - ip_type__name__icontains="borne" - ) - if bornes_list: - for inter in interface.objects.using(db_alias).filter( - machine_type=bornes_list.first() - ): - borne_object = borne() - borne_object.interface_ptr_id = inter.pk - borne_object.__dict__.update(inter.__dict__) - borne_object.save() - - def untransfer_bornes(apps, schema_editor): - return - - operations = [migrations.RunPython(transfer_bornes, untransfer_bornes)] diff --git a/topologie/migrations/0037_auto_20180325_0127.py b/topologie/migrations/0037_auto_20180325_0127.py deleted file mode 100644 index 4d9edd4c..00000000 --- a/topologie/migrations/0037_auto_20180325_0127.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-25 00:27 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0076_auto_20180130_1623"), - ("topologie", "0036_transferborne"), - ] - - operations = [ - migrations.CreateModel( - name="NewSwitch", - fields=[ - ( - "interface_ptr", - models.OneToOneField( - auto_created=True, - on_delete=django.db.models.deletion.CASCADE, - parent_link=True, - primary_key=True, - serialize=False, - to="machines.Interface", - ), - ), - ("location", models.CharField(max_length=255)), - ("number", models.PositiveIntegerField()), - ("stack_member_id", models.PositiveIntegerField(blank=True, null=True)), - ( - "model", - models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.ModelSwitch", - ), - ), - ( - "stack", - models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.Stack", - ), - ), - ], - bases=("machines.interface",), - ), - migrations.AlterUniqueTogether( - name="newswitch", unique_together=set([("stack", "stack_member_id")]) - ), - ] diff --git a/topologie/migrations/0038_transfersw.py b/topologie/migrations/0038_transfersw.py deleted file mode 100644 index 0b1853cd..00000000 --- a/topologie/migrations/0038_transfersw.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0037_auto_20180325_0127")] - - def transfer_sw(apps, schema_editor): - db_alias = schema_editor.connection.alias - newswitch = apps.get_model("topologie", "NewSwitch") - switch = apps.get_model("topologie", "Switch") - interface = apps.get_model("machines", "Interface") - sw_list = switch.objects.using(db_alias).all() - for sw in sw_list: - new_sw = newswitch() - new_sw.location = sw.location - new_sw.number = sw.number - new_sw.details = sw.details - new_sw.stack = sw.stack - new_sw.stack_member_id = sw.stack_member_id - new_sw.model = sw.model - new_sw.interface_ptr_id = sw.switch_interface.pk - new_sw.__dict__.update(sw.switch_interface.__dict__) - new_sw.save() - - def untransfer_sw(apps, schema_editor): - return - - operations = [migrations.RunPython(transfer_sw, untransfer_sw)] diff --git a/topologie/migrations/0039_port_new_switch.py b/topologie/migrations/0039_port_new_switch.py deleted file mode 100644 index c3dc70dc..00000000 --- a/topologie/migrations/0039_port_new_switch.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-25 00:52 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0038_transfersw")] - - operations = [ - migrations.AddField( - model_name="port", - name="new_switch", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.CASCADE, - related_name="ports", - to="topologie.NewSwitch", - ), - ) - ] diff --git a/topologie/migrations/0040_transferports.py b/topologie/migrations/0040_transferports.py deleted file mode 100644 index 8e572082..00000000 --- a/topologie/migrations/0040_transferports.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0039_port_new_switch")] - - def transfer_port(apps, schema_editor): - db_alias = schema_editor.connection.alias - port = apps.get_model("topologie", "Port") - switch = apps.get_model("topologie", "NewSwitch") - port_list = port.objects.using(db_alias).all() - for p in port_list: - p.new_switch = switch.objects.filter( - interface_ptr=p.switch.switch_interface - ).first() - p.save() - - def untransfer_port(apps, schema_editor): - return - - operations = [migrations.RunPython(transfer_port, untransfer_port)] diff --git a/topologie/migrations/0041_transferportsw.py b/topologie/migrations/0041_transferportsw.py deleted file mode 100644 index a0cb4b0a..00000000 --- a/topologie/migrations/0041_transferportsw.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0040_transferports")] - - operations = [ - migrations.AlterUniqueTogether(name="port", unique_together=set([])), - migrations.RemoveField(model_name="port", name="switch"), - migrations.RenameField("Port", "new_switch", "switch"), - ] diff --git a/topologie/migrations/0042_transferswitch.py b/topologie/migrations/0042_transferswitch.py deleted file mode 100644 index 098ec7d4..00000000 --- a/topologie/migrations/0042_transferswitch.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0041_transferportsw")] - - operations = [migrations.DeleteModel(name="Switch")] diff --git a/topologie/migrations/0043_renamenewswitch.py b/topologie/migrations/0043_renamenewswitch.py deleted file mode 100644 index 90a9d776..00000000 --- a/topologie/migrations/0043_renamenewswitch.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0042_transferswitch")] - - operations = [migrations.RenameModel(old_name="NewSwitch", new_name="Switch")] diff --git a/topologie/migrations/0044_auto_20180326_0002.py b/topologie/migrations/0044_auto_20180326_0002.py deleted file mode 100644 index b1af46d7..00000000 --- a/topologie/migrations/0044_auto_20180326_0002.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-25 22:02 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0043_renamenewswitch")] - - operations = [ - migrations.RenameModel(old_name="Borne", new_name="AccessPoint"), - migrations.AlterModelOptions( - name="accesspoint", - options={"permissions": (("view_ap", "Peut voir une borne"),)}, - ), - migrations.AlterModelOptions( - name="switch", - options={"permissions": (("view_switch", "Peut voir un objet switch"),)}, - ), - ] diff --git a/topologie/migrations/0045_auto_20180326_0123.py b/topologie/migrations/0045_auto_20180326_0123.py deleted file mode 100644 index f2dd68d0..00000000 --- a/topologie/migrations/0045_auto_20180326_0123.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-25 23:23 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0044_auto_20180326_0002")] - - operations = [ - migrations.AlterField( - model_name="port", - name="switch", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="ports", - to="topologie.Switch", - ), - ) - ] diff --git a/topologie/migrations/0046_auto_20180326_0129.py b/topologie/migrations/0046_auto_20180326_0129.py deleted file mode 100644 index 7715ad2f..00000000 --- a/topologie/migrations/0046_auto_20180326_0129.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-25 23:29 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0045_auto_20180326_0123")] - - operations = [ - migrations.AlterUniqueTogether( - name="port", unique_together=set([("switch", "port")]) - ) - ] diff --git a/topologie/migrations/0047_ap_machine.py b/topologie/migrations/0047_ap_machine.py deleted file mode 100644 index ad8774ed..00000000 --- a/topologie/migrations/0047_ap_machine.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-23 01:18 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0046_auto_20180326_0129")] - - operations = [ - migrations.CreateModel( - name="NewAccessPoint", - fields=[ - ( - "machine_ptr", - models.OneToOneField( - auto_created=True, - on_delete=django.db.models.deletion.CASCADE, - parent_link=True, - primary_key=True, - serialize=False, - to="machines.Machine", - ), - ), - ( - "location", - models.CharField( - help_text="Détails sur la localisation de l'AP", - max_length=255, - null=True, - blank=True, - ), - ), - ], - bases=("machines.machine",), - ) - ] diff --git a/topologie/migrations/0048_ap_machine.py b/topologie/migrations/0048_ap_machine.py deleted file mode 100644 index 003f7d1e..00000000 --- a/topologie/migrations/0048_ap_machine.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-23 01:18 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0047_ap_machine")] - - def transfer_ap(apps, schema_editor): - db_alias = schema_editor.connection.alias - ap = apps.get_model("topologie", "AccessPoint") - new_ap = apps.get_model("topologie", "NewAccessPoint") - ap_list = ap.objects.using(db_alias).all() - for borne in ap_list: - new_borne = new_ap() - new_borne.machine_ptr_id = borne.machine.pk - new_borne.__dict__.update(borne.machine.__dict__) - new_borne.location = borne.location - new_borne.save() - - def untransfer_ap(apps, schema_editor): - return - - operations = [ - migrations.RunPython(transfer_ap, untransfer_ap), - migrations.DeleteModel(name="AccessPoint"), - migrations.RenameModel(old_name="NewAccessPoint", new_name="AccessPoint"), - ] diff --git a/topologie/migrations/0049_switchs_machine.py b/topologie/migrations/0049_switchs_machine.py deleted file mode 100644 index f28a2d8e..00000000 --- a/topologie/migrations/0049_switchs_machine.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-23 01:18 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0048_ap_machine")] - - operations = [ - migrations.CreateModel( - name="NewSw", - fields=[ - ( - "machine_ptr", - models.OneToOneField( - auto_created=True, - on_delete=django.db.models.deletion.CASCADE, - parent_link=True, - primary_key=True, - serialize=False, - to="machines.Machine", - ), - ), - ("location", models.CharField(max_length=255)), - ("number", models.PositiveIntegerField()), - ("stack_member_id", models.PositiveIntegerField(blank=True, null=True)), - ( - "model", - models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.ModelSwitch", - ), - ), - ( - "stack", - models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.Stack", - ), - ), - ], - bases=("machines.machine",), - ) - ] diff --git a/topologie/migrations/0050_port_new_switch.py b/topologie/migrations/0050_port_new_switch.py deleted file mode 100644 index 1efab4dd..00000000 --- a/topologie/migrations/0050_port_new_switch.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-25 00:52 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0049_switchs_machine")] - - operations = [ - migrations.AddField( - model_name="port", - name="new_sw", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.CASCADE, - related_name="ports", - to="topologie.NewSw", - ), - ) - ] diff --git a/topologie/migrations/0051_switchs_machine.py b/topologie/migrations/0051_switchs_machine.py deleted file mode 100644 index 3a5744e0..00000000 --- a/topologie/migrations/0051_switchs_machine.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-23 01:18 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0050_port_new_switch")] - - def transfer_sw(apps, schema_editor): - db_alias = schema_editor.connection.alias - newswitch = apps.get_model("topologie", "NewSw") - switch = apps.get_model("topologie", "Switch") - machine = apps.get_model("machines", "Machine") - sw_list = switch.objects.using(db_alias).all() - for sw in sw_list: - new_sw = newswitch() - new_sw.location = sw.location - new_sw.number = sw.number - new_sw.details = sw.details - new_sw.stack = sw.stack - new_sw.stack_member_id = sw.stack_member_id - new_sw.model = sw.model - new_sw.machine_ptr_id = sw.interface_ptr.machine.pk - new_sw.__dict__.update(sw.interface_ptr.machine.__dict__) - new_sw.save() - - def untransfer_sw(apps, schema_editor): - return - - operations = [migrations.RunPython(transfer_sw, untransfer_sw)] diff --git a/topologie/migrations/0052_transferports.py b/topologie/migrations/0052_transferports.py deleted file mode 100644 index 3f6c7776..00000000 --- a/topologie/migrations/0052_transferports.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0051_switchs_machine")] - - def transfer_port(apps, schema_editor): - db_alias = schema_editor.connection.alias - port = apps.get_model("topologie", "Port") - switch = apps.get_model("topologie", "NewSw") - port_list = port.objects.using(db_alias).all() - for p in port_list: - p.new_sw = switch.objects.filter(machine_ptr=p.switch.machine).first() - p.save() - - def untransfer_port(apps, schema_editor): - return - - operations = [ - migrations.AlterUniqueTogether(name="port", unique_together=set([])), - migrations.RunPython(transfer_port, untransfer_port), - migrations.RemoveField(model_name="port", name="switch"), - migrations.RenameField("Port", "new_sw", "switch"), - ] diff --git a/topologie/migrations/0053_finalsw.py b/topologie/migrations/0053_finalsw.py deleted file mode 100644 index be77f071..00000000 --- a/topologie/migrations/0053_finalsw.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-23 01:18 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0052_transferports")] - - operations = [ - migrations.DeleteModel(name="Switch"), - migrations.RenameModel(old_name="NewSw", new_name="Switch"), - ] diff --git a/topologie/migrations/0054_auto_20180326_1742.py b/topologie/migrations/0054_auto_20180326_1742.py deleted file mode 100644 index 98567126..00000000 --- a/topologie/migrations/0054_auto_20180326_1742.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-26 15:42 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0053_finalsw")] - - operations = [ - migrations.AlterModelOptions( - name="accesspoint", - options={"permissions": (("view_ap", "Peut voir une borne"),)}, - ), - migrations.AlterModelOptions( - name="switch", - options={"permissions": (("view_switch", "Peut voir un objet switch"),)}, - ), - migrations.AlterField( - model_name="port", - name="switch", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="ports", - to="topologie.Switch", - ), - preserve_default=False, - ), - migrations.AlterUniqueTogether( - name="port", unique_together=set([("switch", "port")]) - ), - migrations.AlterUniqueTogether( - name="switch", unique_together=set([("stack", "stack_member_id")]) - ), - ] diff --git a/topologie/migrations/0055_auto_20180329_0431.py b/topologie/migrations/0055_auto_20180329_0431.py deleted file mode 100644 index a7b232bf..00000000 --- a/topologie/migrations/0055_auto_20180329_0431.py +++ /dev/null @@ -1,17 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-29 02:31 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0054_auto_20180326_1742")] - - operations = [ - migrations.AlterModelOptions( - name="accesspoint", - options={"permissions": (("view_accesspoint", "Peut voir une borne"),)}, - ) - ] diff --git a/topologie/migrations/0056_building_switchbay.py b/topologie/migrations/0056_building_switchbay.py deleted file mode 100644 index c166adc7..00000000 --- a/topologie/migrations/0056_building_switchbay.py +++ /dev/null @@ -1,77 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-07 17:41 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0055_auto_20180329_0431")] - - operations = [ - migrations.CreateModel( - name="Building", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=255)), - ], - options={ - "permissions": (("view_building", "Peut voir un objet batiment"),) - }, - bases=(re2o.mixins.AclMixin, re2o.mixins.RevMixin, models.Model), - ), - migrations.CreateModel( - name="SwitchBay", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=255)), - ( - "info", - models.CharField( - blank=True, - help_text="Informations particulières", - max_length=255, - null=True, - ), - ), - ( - "building", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - to="topologie.Building", - ), - ), - ( - "members", - models.ManyToManyField( - blank=True, related_name="bay_switches", to="topologie.Switch" - ), - ), - ], - options={ - "permissions": ( - ("view_switchbay", "Peut voir un objet baie de brassage"), - ) - }, - bases=(re2o.mixins.AclMixin, re2o.mixins.RevMixin, models.Model), - ), - ] diff --git a/topologie/migrations/0057_auto_20180408_0316.py b/topologie/migrations/0057_auto_20180408_0316.py deleted file mode 100644 index 3f512be9..00000000 --- a/topologie/migrations/0057_auto_20180408_0316.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-08 01:16 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0056_building_switchbay")] - - operations = [ - migrations.RemoveField(model_name="switchbay", name="members"), - migrations.AddField( - model_name="switch", - name="switchbay", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.SwitchBay", - ), - ), - ] diff --git a/topologie/migrations/0058_remove_switch_location.py b/topologie/migrations/0058_remove_switch_location.py deleted file mode 100644 index 7308e993..00000000 --- a/topologie/migrations/0058_remove_switch_location.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-08 02:06 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0057_auto_20180408_0316")] - - operations = [migrations.RemoveField(model_name="switch", name="location")] diff --git a/topologie/migrations/0059_auto_20180415_2249.py b/topologie/migrations/0059_auto_20180415_2249.py deleted file mode 100644 index 211b5799..00000000 --- a/topologie/migrations/0059_auto_20180415_2249.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-16 03:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0058_remove_switch_location")] - - operations = [ - migrations.AlterField( - model_name="switch", - name="model", - field=models.ForeignKey( - blank=True, - help_text="Modèle du switch", - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.ModelSwitch", - ), - ), - migrations.AlterField( - model_name="switch", - name="number", - field=models.PositiveIntegerField(help_text="Nombre de ports"), - ), - migrations.AlterField( - model_name="switch", - name="stack_member_id", - field=models.PositiveIntegerField( - blank=True, help_text="Baie de brassage du switch", null=True - ), - ), - migrations.AlterField( - model_name="switch", - name="switchbay", - field=models.ForeignKey( - blank=True, - help_text="Baie de brassage du switch", - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.SwitchBay", - ), - ), - ] diff --git a/topologie/migrations/0060_server.py b/topologie/migrations/0060_server.py deleted file mode 100644 index 7d757429..00000000 --- a/topologie/migrations/0060_server.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-05-21 19:13 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0081_auto_20180521_1413"), - ("topologie", "0059_auto_20180415_2249"), - ] - - operations = [ - migrations.CreateModel( - name="Server", - fields=[], - options={"proxy": True}, - bases=("machines.machine",), - ) - ] diff --git a/topologie/migrations/0061_portprofile.py b/topologie/migrations/0061_portprofile.py deleted file mode 100644 index dd26f988..00000000 --- a/topologie/migrations/0061_portprofile.py +++ /dev/null @@ -1,310 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-06-26 16:37 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -def transfer_profil(apps, schema_editor): - db_alias = schema_editor.connection.alias - port = apps.get_model("topologie", "Port") - profil = apps.get_model("topologie", "PortProfile") - vlan = apps.get_model("machines", "Vlan") - port_list = port.objects.using(db_alias).all() - profil_nothing = profil.objects.using(db_alias).create( - name="nothing", profil_default="nothing", radius_type="NO" - ) - profil_uplink = profil.objects.using(db_alias).create( - name="uplink", profil_default="uplink", radius_type="NO" - ) - profil_machine = profil.objects.using(db_alias).create( - name="asso_machine", profil_default="asso_machine", radius_type="NO" - ) - profil_room = profil.objects.using(db_alias).create( - name="room", profil_default="room", radius_type="NO" - ) - profil_borne = profil.objects.using(db_alias).create( - name="accesspoint", profil_default="accesspoint", radius_type="NO" - ) - for vlan_instance in vlan.objects.using(db_alias).all(): - if port.objects.using(db_alias).filter(vlan_force=vlan_instance): - custom_profile = profil.objects.using(db_alias).create( - name="vlan-force-" + str(vlan_instance.vlan_id), - radius_type="NO", - vlan_untagged=vlan_instance, - ) - port.objects.using(db_alias).filter(vlan_force=vlan_instance).update( - custom_profile=custom_profile - ) - if ( - port.objects.using(db_alias) - .filter(room__isnull=False) - .filter(radius="STRICT") - .count() - > port.objects.using(db_alias) - .filter(room__isnull=False) - .filter(radius="NO") - .count() - and port.objects.using(db_alias) - .filter(room__isnull=False) - .filter(radius="STRICT") - .count() - > port.objects.using(db_alias) - .filter(room__isnull=False) - .filter(radius="COMMON") - .count() - ): - profil_room.radius_type = "MAC-radius" - profil_room.radius_mode = "STRICT" - common_profil = profil.objects.using(db_alias).create( - name="mac-radius-common", radius_type="MAC-radius", radius_mode="COMMON" - ) - no_rad_profil = profil.objects.using(db_alias).create( - name="no-radius", radius_type="NO" - ) - port.objects.using(db_alias).filter(room__isnull=False).filter( - radius="COMMON" - ).update(custom_profile=common_profil) - port.objects.using(db_alias).filter(room__isnull=False).filter( - radius="NO" - ).update(custom_profile=no_rad_profil) - elif ( - port.objects.using(db_alias) - .filter(room__isnull=False) - .filter(radius="COMMON") - .count() - > port.objects.using(db_alias) - .filter(room__isnull=False) - .filter(radius="NO") - .count() - and port.objects.using(db_alias) - .filter(room__isnull=False) - .filter(radius="COMMON") - .count() - > port.objects.using(db_alias) - .filter(room__isnull=False) - .filter(radius="STRICT") - .count() - ): - profil_room.radius_type = "MAC-radius" - profil_room.radius_mode = "COMMON" - strict_profil = profil.objects.using(db_alias).create( - name="mac-radius-strict", radius_type="MAC-radius", radius_mode="STRICT" - ) - no_rad_profil = profil.objects.using(db_alias).create( - name="no-radius", radius_type="NO" - ) - port.objects.using(db_alias).filter(room__isnull=False).filter( - radius="STRICT" - ).update(custom_profile=strict_profil) - port.objects.using(db_alias).filter(room__isnull=False).filter( - radius="NO" - ).update(custom_profile=no_rad_profil) - else: - strict_profil = profil.objects.using(db_alias).create( - name="mac-radius-strict", radius_type="MAC-radius", radius_mode="STRICT" - ) - common_profil = profil.objects.using(db_alias).create( - name="mac-radius-common", radius_type="MAC-radius", radius_mode="COMMON" - ) - port.objects.using(db_alias).filter(room__isnull=False).filter( - radius="STRICT" - ).update(custom_profile=strict_profil) - port.objects.using(db_alias).filter(room__isnull=False).filter( - radius="NO" - ).update(custom_profile=common_profil) - profil_room.save() - - -class Migration(migrations.Migration): - - dependencies = [ - ("machines", "0082_auto_20180525_2209"), - ("topologie", "0060_server"), - ] - - operations = [ - migrations.CreateModel( - name="PortProfile", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=255, verbose_name="Name")), - ( - "profil_default", - models.CharField( - blank=True, - choices=[ - ("room", "room"), - ("accespoint", "accesspoint"), - ("uplink", "uplink"), - ("asso_machine", "asso_machine"), - ("nothing", "nothing"), - ], - max_length=32, - null=True, - unique=True, - verbose_name="profil default", - ), - ), - ( - "radius_type", - models.CharField( - choices=[ - ("NO", "NO"), - ("802.1X", "802.1X"), - ("MAC-radius", "MAC-radius"), - ], - help_text="Type of radius auth : inactive, mac-address or 802.1X", - max_length=32, - verbose_name="RADIUS type", - ), - ), - ( - "radius_mode", - models.CharField( - choices=[("STRICT", "STRICT"), ("COMMON", "COMMON")], - default="COMMON", - help_text="In case of mac-auth : mode common or strict on this port", - max_length=32, - verbose_name="RADIUS mode", - ), - ), - ( - "speed", - models.CharField( - choices=[ - ("10-half", "10-half"), - ("100-half", "100-half"), - ("10-full", "10-full"), - ("100-full", "100-full"), - ("1000-full", "1000-full"), - ("auto", "auto"), - ("auto-10", "auto-10"), - ("auto-100", "auto-100"), - ], - default="auto", - help_text="Port speed limit", - max_length=32, - verbose_name="Speed", - ), - ), - ( - "mac_limit", - models.IntegerField( - blank=True, - help_text="Limit of mac-address on this port", - null=True, - verbose_name="Mac limit", - ), - ), - ( - "flow_control", - models.BooleanField( - default=False, - help_text="Flow control", - verbose_name="Flow control", - ), - ), - ( - "dhcp_snooping", - models.BooleanField( - default=False, - help_text="Protect against rogue dhcp", - verbose_name="Dhcp snooping", - ), - ), - ( - "dhcpv6_snooping", - models.BooleanField( - default=False, - help_text="Protect against rogue dhcpv6", - verbose_name="Dhcpv6 snooping", - ), - ), - ( - "arp_protect", - models.BooleanField( - default=False, - help_text="Check if ip is dhcp assigned", - verbose_name="Arp protect", - ), - ), - ( - "ra_guard", - models.BooleanField( - default=False, - help_text="Protect against rogue ra", - verbose_name="Ra guard", - ), - ), - ( - "loop_protect", - models.BooleanField( - default=False, - help_text="Protect again loop", - verbose_name="Loop Protect", - ), - ), - ( - "vlan_tagged", - models.ManyToManyField( - blank=True, - related_name="vlan_tagged", - to="machines.Vlan", - verbose_name="VLAN(s) tagged", - ), - ), - ( - "vlan_untagged", - models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - related_name="vlan_untagged", - to="machines.Vlan", - verbose_name="VLAN untagged", - ), - ), - ], - options={ - "verbose_name": "Port profile", - "permissions": ( - ("view_port_profile", "Can view a port profile object"), - ), - "verbose_name_plural": "Port profiles", - }, - bases=(re2o.mixins.AclMixin, re2o.mixins.RevMixin, models.Model), - ), - migrations.AddField( - model_name="port", - name="custom_profile", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="topologie.PortProfile", - ), - ), - migrations.RunPython(transfer_profil), - migrations.RemoveField(model_name="port", name="radius"), - migrations.RemoveField(model_name="port", name="vlan_force"), - migrations.AddField( - model_name="port", - name="state", - field=models.BooleanField( - default=True, - help_text="Port state Active", - verbose_name="Port State Active", - ), - ), - ] diff --git a/topologie/migrations/0062_auto_20180815_1918.py b/topologie/migrations/0062_auto_20180815_1918.py deleted file mode 100644 index a36f0ef0..00000000 --- a/topologie/migrations/0062_auto_20180815_1918.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-15 17:18 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0061_portprofile")] - - operations = [ - migrations.AlterModelOptions( - name="accesspoint", - options={ - "permissions": ( - ("view_accesspoint", "Can view an access point object"), - ), - "verbose_name": "access point", - "verbose_name_plural": "access points", - }, - ), - migrations.AlterModelOptions( - name="building", - options={ - "permissions": (("view_building", "Can view a building object"),), - "verbose_name": "building", - "verbose_name_plural": "buildings", - }, - ), - migrations.AlterModelOptions( - name="constructorswitch", - options={ - "permissions": ( - ("view_constructorswitch", "Can view a switch constructor object"), - ), - "verbose_name": "switch constructor", - "verbose_name_plural": "switch constructors", - }, - ), - migrations.AlterModelOptions( - name="modelswitch", - options={ - "permissions": ( - ("view_modelswitch", "Can view a switch model object"), - ), - "verbose_name": "switch model", - "verbose_name_plural": "switch models", - }, - ), - migrations.AlterModelOptions( - name="port", - options={ - "permissions": (("view_port", "Can view a port object"),), - "verbose_name": "port", - "verbose_name_plural": "ports", - }, - ), - migrations.AlterModelOptions( - name="portprofile", - options={ - "permissions": ( - ("view_port_profile", "Can view a port profile object"), - ), - "verbose_name": "port profile", - "verbose_name_plural": "port profiles", - }, - ), - migrations.AlterModelOptions( - name="room", - options={ - "ordering": ["name"], - "permissions": (("view_room", "Can view a room object"),), - "verbose_name": "room", - "verbose_name_plural": "rooms", - }, - ), - migrations.AlterModelOptions( - name="stack", - options={ - "permissions": (("view_stack", "Can view a stack object"),), - "verbose_name": "switches stack", - "verbose_name_plural": "switches stacks", - }, - ), - migrations.AlterModelOptions( - name="switch", - options={ - "permissions": (("view_switch", "Can view a switch object"),), - "verbose_name": "switch", - "verbose_name_plural": "switches", - }, - ), - migrations.AlterModelOptions( - name="switchbay", - options={ - "permissions": (("view_switchbay", "Can view a switch bay object"),), - "verbose_name": "switch bay", - "verbose_name_plural": "switch bays", - }, - ), - migrations.AlterField( - model_name="accesspoint", - name="location", - field=models.CharField( - blank=True, - help_text="Details about the AP's location", - max_length=255, - null=True, - ), - ), - migrations.AlterField( - model_name="port", - name="state", - field=models.BooleanField( - default=True, - help_text="Port state Active", - verbose_name="Port state Active", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="arp_protect", - field=models.BooleanField( - default=False, - help_text="Check if IP adress is DHCP assigned", - verbose_name="ARP protection", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="dhcp_snooping", - field=models.BooleanField( - default=False, - help_text="Protect against rogue DHCP", - verbose_name="DHCP snooping", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="dhcpv6_snooping", - field=models.BooleanField( - default=False, - help_text="Protect against rogue DHCPv6", - verbose_name="DHCPv6 snooping", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="flow_control", - field=models.BooleanField(default=False, help_text="Flow control"), - ), - migrations.AlterField( - model_name="portprofile", - name="loop_protect", - field=models.BooleanField( - default=False, - help_text="Protect against loop", - verbose_name="Loop protection", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="mac_limit", - field=models.IntegerField( - blank=True, - help_text="Limit of MAC-address on this port", - null=True, - verbose_name="MAC limit", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="profil_default", - field=models.CharField( - blank=True, - choices=[ - ("room", "room"), - ("accespoint", "accesspoint"), - ("uplink", "uplink"), - ("asso_machine", "asso_machine"), - ("nothing", "nothing"), - ], - max_length=32, - null=True, - unique=True, - verbose_name="Default profile", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="ra_guard", - field=models.BooleanField( - default=False, - help_text="Protect against rogue RA", - verbose_name="RA guard", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="radius_mode", - field=models.CharField( - choices=[("STRICT", "STRICT"), ("COMMON", "COMMON")], - default="COMMON", - help_text="In case of MAC-authentication : mode COMMON or STRICT on this port", - max_length=32, - verbose_name="RADIUS mode", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="radius_type", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("802.1X", "802.1X"), - ("MAC-radius", "MAC-radius"), - ], - help_text="Type of RADIUS authentication : inactive, MAC-address or 802.1X", - max_length=32, - verbose_name="RADIUS type", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="speed", - field=models.CharField( - choices=[ - ("10-half", "10-half"), - ("100-half", "100-half"), - ("10-full", "10-full"), - ("100-full", "100-full"), - ("1000-full", "1000-full"), - ("auto", "auto"), - ("auto-10", "auto-10"), - ("auto-100", "auto-100"), - ], - default="auto", - help_text="Port speed limit", - max_length=32, - ), - ), - migrations.AlterField( - model_name="switch", - name="model", - field=models.ForeignKey( - blank=True, - help_text="Switch model", - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.ModelSwitch", - ), - ), - migrations.AlterField( - model_name="switch", - name="number", - field=models.PositiveIntegerField(help_text="Number of ports"), - ), - migrations.AlterField( - model_name="switch", - name="stack_member_id", - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name="switch", - name="switchbay", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="topologie.SwitchBay", - ), - ), - migrations.AlterField( - model_name="switchbay", - name="info", - field=models.CharField(blank=True, max_length=255, null=True), - ), - ] diff --git a/topologie/migrations/0063_auto_20180919_2225.py b/topologie/migrations/0063_auto_20180919_2225.py deleted file mode 100644 index 1312f405..00000000 --- a/topologie/migrations/0063_auto_20180919_2225.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-09-19 20:25 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("preferences", "0051_auto_20180919_2225"), - ("topologie", "0062_auto_20180815_1918"), - ] - - operations = [ - migrations.AddField( - model_name="modelswitch", - name="firmware", - field=models.CharField(blank=True, max_length=255, null=True), - ), - migrations.AddField( - model_name="switch", - name="management_creds", - field=models.ForeignKey( - blank=True, - help_text="Identifiant de management de ce switch", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="preferences.SwitchManagementCred", - ), - ), - migrations.AddField( - model_name="switch", - name="radius_key", - field=models.ForeignKey( - blank=True, - help_text="Clef radius du switch", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="preferences.RadiusKey", - ), - ), - ] diff --git a/topologie/migrations/0064_switch_automatic_provision.py b/topologie/migrations/0064_switch_automatic_provision.py deleted file mode 100644 index 99b68d29..00000000 --- a/topologie/migrations/0064_switch_automatic_provision.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-09-20 16:28 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0063_auto_20180919_2225")] - - operations = [ - migrations.AddField( - model_name="switch", - name="automatic_provision", - field=models.BooleanField( - default=False, help_text="Provision automatique de ce switch" - ), - ) - ] diff --git a/topologie/migrations/0065_auto_20180927_1836.py b/topologie/migrations/0065_auto_20180927_1836.py deleted file mode 100644 index 2a5b9ed0..00000000 --- a/topologie/migrations/0065_auto_20180927_1836.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-09-27 16:36 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0064_switch_automatic_provision")] - - operations = [ - migrations.AlterField( - model_name="portprofile", - name="profil_default", - field=models.CharField( - blank=True, - choices=[ - ("room", "room"), - ("access_point", "access_point"), - ("uplink", "uplink"), - ("asso_machine", "asso_machine"), - ("nothing", "nothing"), - ], - max_length=32, - null=True, - unique=True, - verbose_name="Default profile", - ), - ) - ] diff --git a/topologie/migrations/0066_modelswitch_commercial_name.py b/topologie/migrations/0066_modelswitch_commercial_name.py deleted file mode 100644 index 2646c62b..00000000 --- a/topologie/migrations/0066_modelswitch_commercial_name.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-10-11 17:30 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0065_auto_20180927_1836")] - - operations = [ - migrations.AddField( - model_name="modelswitch", - name="commercial_name", - field=models.CharField(blank=True, max_length=255, null=True), - ) - ] diff --git a/topologie/migrations/0067_auto_20181230_1819.py b/topologie/migrations/0067_auto_20181230_1819.py deleted file mode 100644 index f9f56f09..00000000 --- a/topologie/migrations/0067_auto_20181230_1819.py +++ /dev/null @@ -1,111 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-12-30 17:19 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0066_modelswitch_commercial_name")] - - operations = [ - migrations.CreateModel( - name="ModuleOnSwitch", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "slot", - models.CharField( - help_text="Slot on switch", max_length=15, verbose_name="Slot" - ), - ), - ], - options={ - "verbose_name": "link between switchs and modules", - "permissions": ( - ("view_moduleonswitch", "Can view a moduleonswitch object"), - ), - }, - bases=(re2o.mixins.AclMixin, re2o.mixins.RevMixin, models.Model), - ), - migrations.CreateModel( - name="ModuleSwitch", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "reference", - models.CharField( - help_text="Reference of a module", - max_length=255, - verbose_name="Module reference", - ), - ), - ( - "comment", - models.CharField( - blank=True, - help_text="Comment", - max_length=255, - null=True, - verbose_name="Comment", - ), - ), - ], - options={ - "verbose_name": "Module of a switch", - "permissions": (("view_moduleswitch", "Can view a module object"),), - }, - bases=(re2o.mixins.AclMixin, re2o.mixins.RevMixin, models.Model), - ), - migrations.AddField( - model_name="modelswitch", - name="is_itself_module", - field=models.BooleanField( - default=False, - help_text="Does the switch, itself, considered as a module", - ), - ), - migrations.AddField( - model_name="modelswitch", - name="is_modular", - field=models.BooleanField( - default=False, help_text="Is this switch model modular" - ), - ), - migrations.AddField( - model_name="moduleonswitch", - name="module", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to="topologie.ModuleSwitch" - ), - ), - migrations.AddField( - model_name="moduleonswitch", - name="switch", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to="topologie.Switch" - ), - ), - migrations.AlterUniqueTogether( - name="moduleonswitch", unique_together=set([("slot", "switch")]) - ), - ] diff --git a/topologie/migrations/0068_auto_20190102_1758.py b/topologie/migrations/0068_auto_20190102_1758.py deleted file mode 100644 index 41342c90..00000000 --- a/topologie/migrations/0068_auto_20190102_1758.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-02 23:58 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0067_auto_20181230_1819")] - - operations = [ - migrations.AlterField( - model_name="modelswitch", - name="is_itself_module", - field=models.BooleanField( - default=False, help_text="Is the switch, itself, considered as a module" - ), - ) - ] diff --git a/topologie/migrations/0069_auto_20190108_1439.py b/topologie/migrations/0069_auto_20190108_1439.py deleted file mode 100644 index 9a26746e..00000000 --- a/topologie/migrations/0069_auto_20190108_1439.py +++ /dev/null @@ -1,112 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-08 20:39 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0068_auto_20190102_1758")] - - operations = [ - migrations.AlterModelOptions( - name="moduleonswitch", - options={ - "permissions": ( - ( - "view_moduleonswitch", - "Can view a link between switch and module object", - ), - ), - "verbose_name": "link between switch and module", - "verbose_name_plural": "links between switch and module", - }, - ), - migrations.AlterModelOptions( - name="moduleswitch", - options={ - "permissions": ( - ("view_moduleswitch", "Can view a switch module object"), - ), - "verbose_name": "switch module", - "verbose_name_plural": "switch modules", - }, - ), - migrations.AlterField( - model_name="modelswitch", - name="is_itself_module", - field=models.BooleanField( - default=False, help_text="The switch is considered as a module." - ), - ), - migrations.AlterField( - model_name="modelswitch", - name="is_modular", - field=models.BooleanField( - default=False, help_text="The switch model is modular." - ), - ), - migrations.AlterField( - model_name="portprofile", - name="profil_default", - field=models.CharField( - blank=True, - choices=[ - ("room", "Room"), - ("access_point", "Access point"), - ("uplink", "Uplink"), - ("asso_machine", "Organisation machine"), - ("nothing", "Nothing"), - ], - max_length=32, - null=True, - unique=True, - verbose_name="Default profile", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="radius_type", - field=models.CharField( - choices=[ - ("NO", "NO"), - ("802.1X", "802.1X"), - ("MAC-radius", "MAC-RADIUS"), - ], - help_text="Type of RADIUS authentication : inactive, MAC-address or 802.1X", - max_length=32, - verbose_name="RADIUS type", - ), - ), - migrations.AlterField( - model_name="switch", - name="automatic_provision", - field=models.BooleanField( - default=False, help_text="Automatic provision for the switch" - ), - ), - migrations.AlterField( - model_name="switch", - name="management_creds", - field=models.ForeignKey( - blank=True, - help_text="Management credentials for the switch", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="preferences.SwitchManagementCred", - ), - ), - migrations.AlterField( - model_name="switch", - name="radius_key", - field=models.ForeignKey( - blank=True, - help_text="RADIUS key of the switch", - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="preferences.RadiusKey", - ), - ), - ] diff --git a/topologie/migrations/0070_auto_20190218_1743.py b/topologie/migrations/0070_auto_20190218_1743.py deleted file mode 100644 index df16dfca..00000000 --- a/topologie/migrations/0070_auto_20190218_1743.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-02-18 16:43 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0069_auto_20190108_1439")] - - def create_dormitory(apps, schema_editor): - db_alias = schema_editor.connection.alias - dormitory = apps.get_model("topologie", "Dormitory") - building = apps.get_model("topologie", "Building") - dorm = dormitory.objects.using(db_alias).create(name="Residence") - building.objects.using(db_alias).update(dormitory=dorm) - - def delete_dormitory(apps, schema_editor): - pass - - operations = [ - migrations.CreateModel( - name="Dormitory", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=255)), - ], - options={ - "verbose_name": "dormitory", - "permissions": (("view_dormitory", "Can view a dormitory object"),), - "verbose_name_plural": "dormitories", - }, - bases=(re2o.mixins.AclMixin, re2o.mixins.RevMixin, models.Model), - ), - migrations.AddField( - model_name="building", - name="dormitory", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="topologie.Dormitory", - ), - preserve_default=False, - ), - migrations.RunPython(create_dormitory, delete_dormitory), - ] diff --git a/topologie/migrations/0071_auto_20190218_1936.py b/topologie/migrations/0071_auto_20190218_1936.py deleted file mode 100644 index 39db3e31..00000000 --- a/topologie/migrations/0071_auto_20190218_1936.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-02-18 18:36 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0070_auto_20190218_1743")] - - def transfer_room(apps, schema_editor): - db_alias = schema_editor.connection.alias - room_obj = apps.get_model("topologie", "Room") - building_obj = apps.get_model("topologie", "Building") - dorm_obj = apps.get_model("topologie", "Dormitory") - dorm = dorm_obj.objects.using(db_alias).first() - for room in room_obj.objects.using(db_alias).all(): - building, created = building_obj.objects.using(db_alias).get_or_create( - name=room.name[0].upper(), dormitory=dorm - ) - room.building = building - room.name = room.name[1:] - room.save() - - def untransfer_room(apps, schema_editor): - pass - - operations = [ - migrations.AlterField( - model_name="room", name="name", field=models.CharField(max_length=255) - ), - migrations.AddField( - model_name="room", - name="building", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="topologie.Building", - ), - ), - migrations.AlterUniqueTogether( - name="room", unique_together=set([("name", "building")]) - ), - migrations.AlterField( - model_name="building", - name="dormitory", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, to="topologie.Dormitory" - ), - ), - migrations.RunPython(transfer_room, untransfer_room), - migrations.AlterField( - model_name="room", - name="building", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, to="topologie.Building" - ), - ), - ] diff --git a/topologie/migrations/0072_auto_20190720_2318.py b/topologie/migrations/0072_auto_20190720_2318.py deleted file mode 100644 index 7e276c3e..00000000 --- a/topologie/migrations/0072_auto_20190720_2318.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-07-20 21:18 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("topologie", "0071_auto_20190218_1936")] - - operations = [ - migrations.AlterModelOptions( - name="room", - options={ - "ordering": ["building__name"], - "permissions": (("view_room", "Can view a room object"),), - "verbose_name": "room", - "verbose_name_plural": "rooms", - }, - ), - migrations.AddField( - model_name="portprofile", - name="on_dormitory", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - related_name="dormitory_ofprofil", - to="topologie.Dormitory", - verbose_name="Profil on dormitory", - ), - ), - migrations.AlterField( - model_name="portprofile", - name="profil_default", - field=models.CharField( - blank=True, - choices=[ - ("room", "Room"), - ("access_point", "Access point"), - ("uplink", "Uplink"), - ("asso_machine", "Organisation machine"), - ("nothing", "Nothing"), - ], - max_length=32, - null=True, - verbose_name="Default profile", - ), - ), - migrations.AlterUniqueTogether( - name="portprofile", - unique_together=set([("on_dormitory", "profil_default")]), - ), - ] diff --git a/topologie/migrations/0073_auto_20191120_0159.py b/topologie/migrations/0073_auto_20191120_0159.py deleted file mode 100644 index 482c21c8..00000000 --- a/topologie/migrations/0073_auto_20191120_0159.py +++ /dev/null @@ -1,131 +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 -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('topologie', '0072_auto_20190720_2318'), - ] - - operations = [ - migrations.AlterField( - model_name='accesspoint', - name='location', - field=models.CharField(blank=True, help_text="Details about the AP's location.", max_length=255, null=True), - ), - migrations.AlterField( - model_name='moduleonswitch', - name='slot', - field=models.CharField(help_text='Slot on switch.', max_length=15, verbose_name='slot'), - ), - migrations.AlterField( - model_name='moduleswitch', - name='comment', - field=models.CharField(blank=True, help_text='Comment.', max_length=255, null=True, verbose_name='comment'), - ), - migrations.AlterField( - model_name='moduleswitch', - name='reference', - field=models.CharField(help_text='Reference of a module.', max_length=255, verbose_name='module reference'), - ), - migrations.AlterField( - model_name='port', - name='state', - field=models.BooleanField(default=True, help_text='Port state Active.', verbose_name='port state Active'), - ), - migrations.AlterField( - model_name='portprofile', - name='arp_protect', - field=models.BooleanField(default=False, help_text='Check if IP address is DHCP assigned.', verbose_name='ARP protection'), - ), - migrations.AlterField( - model_name='portprofile', - name='dhcp_snooping', - field=models.BooleanField(default=False, help_text='Protect against rogue DHCP.', verbose_name='DHCP snooping'), - ), - migrations.AlterField( - model_name='portprofile', - name='dhcpv6_snooping', - field=models.BooleanField(default=False, help_text='Protect against rogue DHCPv6.', verbose_name='DHCPv6 snooping'), - ), - migrations.AlterField( - model_name='portprofile', - name='flow_control', - field=models.BooleanField(default=False, help_text='Flow control.'), - ), - migrations.AlterField( - model_name='portprofile', - name='loop_protect', - field=models.BooleanField(default=False, help_text='Protect against loop.', verbose_name='loop protection'), - ), - migrations.AlterField( - model_name='portprofile', - name='mac_limit', - field=models.IntegerField(blank=True, help_text='Limit of MAC-address on this port.', null=True, verbose_name='MAC limit'), - ), - migrations.AlterField( - model_name='portprofile', - name='name', - field=models.CharField(max_length=255, verbose_name='name'), - ), - migrations.AlterField( - model_name='portprofile', - name='on_dormitory', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='dormitory_ofprofil', to='topologie.Dormitory', verbose_name='profile on dormitory'), - ), - migrations.AlterField( - model_name='portprofile', - name='profil_default', - field=models.CharField(blank=True, choices=[('room', 'Room'), ('access_point', 'Access point'), ('uplink', 'Uplink'), ('asso_machine', 'Organisation machine'), ('nothing', 'Nothing')], max_length=32, null=True, verbose_name='default profile'), - ), - migrations.AlterField( - model_name='portprofile', - name='ra_guard', - field=models.BooleanField(default=False, help_text='Protect against rogue RA.', verbose_name='RA guard'), - ), - migrations.AlterField( - model_name='portprofile', - name='radius_mode', - field=models.CharField(choices=[('STRICT', 'STRICT'), ('COMMON', 'COMMON')], default='COMMON', help_text='In case of MAC-authentication: mode COMMON or STRICT on this port.', max_length=32, verbose_name='RADIUS mode'), - ), - migrations.AlterField( - model_name='portprofile', - name='radius_type', - field=models.CharField(choices=[('NO', 'NO'), ('802.1X', '802.1X'), ('MAC-radius', 'MAC-RADIUS')], help_text='Type of RADIUS authentication: inactive, MAC-address or 802.1X.', max_length=32, verbose_name='RADIUS type'), - ), - migrations.AlterField( - model_name='portprofile', - name='speed', - field=models.CharField(choices=[('10-half', '10-half'), ('100-half', '100-half'), ('10-full', '10-full'), ('100-full', '100-full'), ('1000-full', '1000-full'), ('auto', 'auto'), ('auto-10', 'auto-10'), ('auto-100', 'auto-100')], default='auto', help_text='Port speed limit.', max_length=32), - ), - migrations.AlterField( - model_name='switch', - name='automatic_provision', - field=models.BooleanField(default=False, help_text='Automatic provision for the switch.'), - ), - migrations.AlterField( - model_name='switch', - name='management_creds', - field=models.ForeignKey(blank=True, help_text='Management credentials for the switch.', null=True, on_delete=django.db.models.deletion.PROTECT, to='preferences.SwitchManagementCred'), - ), - migrations.AlterField( - model_name='switch', - name='model', - field=models.ForeignKey(blank=True, help_text='Switch model.', null=True, on_delete=django.db.models.deletion.SET_NULL, to='topologie.ModelSwitch'), - ), - migrations.AlterField( - model_name='switch', - name='number', - field=models.PositiveIntegerField(help_text='Number of ports.'), - ), - migrations.AlterField( - model_name='switch', - name='radius_key', - field=models.ForeignKey(blank=True, help_text='RADIUS key of the switch.', null=True, on_delete=django.db.models.deletion.PROTECT, to='preferences.RadiusKey'), - ), - ] diff --git a/topologie/migrations/0074_auto_20200419_1640.py b/topologie/migrations/0074_auto_20200419_1640.py deleted file mode 100644 index 22576704..00000000 --- a/topologie/migrations/0074_auto_20200419_1640.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-19 14:40 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('topologie', '0073_auto_20191120_0159'), - ] - - operations = [ - migrations.AlterModelOptions( - name='portprofile', - options={'permissions': (('view_portprofile', 'Can view a port profile object'),), 'verbose_name': 'port profile', 'verbose_name_plural': 'port profiles'}, - ), - ] diff --git a/users/migrations/0001_initial.py b/users/migrations/0001_initial.py deleted file mode 100644 index f7a2aa9b..00000000 --- a/users/migrations/0001_initial.py +++ /dev/null @@ -1,89 +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 = [] - - operations = [ - migrations.CreateModel( - name="School", - fields=[ - ( - "id", - models.AutoField( - primary_key=True, - serialize=False, - verbose_name="ID", - auto_created=True, - ), - ), - ("name", models.CharField(max_length=255)), - ], - ), - migrations.CreateModel( - name="User", - fields=[ - ( - "id", - models.AutoField( - primary_key=True, - serialize=False, - verbose_name="ID", - auto_created=True, - ), - ), - ("name", models.CharField(max_length=255)), - ("surname", models.CharField(max_length=255)), - ("pseudo", models.CharField(max_length=255)), - ("email", models.EmailField(max_length=254)), - ("promo", models.CharField(max_length=255)), - ("pwd_ssha", models.CharField(max_length=255)), - ("pwd_ntlm", models.CharField(max_length=255)), - ( - "state", - models.CharField( - default=0, - max_length=30, - choices=[ - (0, "STATE_ACTIVE"), - (1, "STATE_DEACTIVATED"), - (2, "STATE_ARCHIVED"), - ], - ), - ), - ( - "school", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, to="users.School" - ), - ), - ], - ), - ] diff --git a/users/migrations/0001_model_creation.py b/users/migrations/0001_model_creation.py index 6cdfd2e7..8c6338da 100644 --- a/users/migrations/0001_model_creation.py +++ b/users/migrations/0001_model_creation.py @@ -14,426 +14,6 @@ import users.models class Migration(migrations.Migration): dependencies = [('auth', '0008_alter_user_username_max_length')] initial = True - # We replace everything. - replaces = [ - ("users", "0001_initial"), - ("users", "0002_auto_20160630_2301"), - ("users", "0003_listrights_rights"), - ("users", "0004_auto_20160701_2312"), - ("users", "0005_auto_20160702_0006"), - ("users", "0006_ban"), - ("users", "0007_auto_20160702_2322"), - ("users", "0008_user_registered"), - ("users", "0009_user_room"), - ("users", "0010_auto_20160703_1226"), - ("users", "0011_auto_20160703_1227"), - ("users", "0012_auto_20160703_1230"), - ("users", "0013_auto_20160704_1547"), - ("users", "0014_auto_20160704_1548"), - ("users", "0015_whitelist"), - ("users", "0016_auto_20160706_1220"), - ("users", "0017_auto_20160707_0105"), - ("users", "0018_auto_20160707_0115"), - ("users", "0019_auto_20160708_1633"), - ("users", "0020_request"), - ("users", "0021_ldapuser"), - ("users", "0022_ldapuser_sambasid"), - ("users", "0023_auto_20160724_1908"), - ("users", "0024_remove_ldapuser_mac_list"), - ("users", "0025_listshell"), - ("users", "0026_user_shell"), - ("users", "0027_auto_20160726_0216"), - ("users", "0028_auto_20160726_0227"), - ("users", "0029_auto_20160726_0229"), - ("users", "0030_auto_20160726_0357"), - ("users", "0031_auto_20160726_0359"), - ("users", "0032_auto_20160727_2122"), - ("users", "0033_remove_ldapuser_loginshell"), - ("users", "0034_auto_20161018_0037"), - ("users", "0035_auto_20161018_0046"), - ("users", "0036_auto_20161022_2146"), - ("users", "0037_auto_20161028_1906"), - ("users", "0038_auto_20161031_0258"), - ("users", "0039_auto_20161119_0033"), - ("users", "0040_auto_20161119_1709"), - ("users", "0041_listright_details"), - ("users", "0042_auto_20161126_2028"), - ("users", "0043_auto_20161224_1156"), - ("users", "0043_ban_state"), - ("users", "0044_user_ssh_public_key"), - ("users", "0045_merge"), - ("users", "0046_auto_20170617_1433"), - ("users", "0047_auto_20170618_0156"), - ("users", "0048_auto_20170618_0210"), - ("users", "0049_auto_20170618_1424"), - ("users", "0050_serviceuser_comment"), - ("users", "0051_user_telephone"), - ("users", "0052_ldapuser_shadowexpire"), - ("users", "0053_auto_20170626_2105"), - ("users", "0054_auto_20170626_2219"), - ("users", "0055_auto_20171003_0556"), - ("users", "0056_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ("users", "0058_auto_20171025_0154"), - ("users", "0059_auto_20171025_1854"), - ("users", "0060_auto_20171120_0317"), - ("users", "0061_auto_20171230_2033"), - ("users", "0062_auto_20171231_0056"), - ("users", "0063_auto_20171231_0140"), - ("users", "0064_auto_20171231_0150"), - ("users", "0065_auto_20171231_2053"), - ("users", "0066_grouppermissions"), - ("users", "0067_serveurpermission"), - ("users", "0068_auto_20180107_2245"), - ("users", "0069_club_mailing"), - ("users", "0070_auto_20180324_1906"), - ("users", "0071_auto_20180415_1252"), - ("users", "0072_auto_20180426_2021"), - ("users", "0073_auto_20180629_1614"), - ("users", "0074_auto_20180810_2104"), - ("users", "0074_auto_20180814_1059"), - ("users", "0075_merge_20180815_2202"), - ("users", "0076_auto_20180818_1321"), - ("users", "0077_auto_20180824_1750"), - ("users", "0078_auto_20181011_1405"), - ("users", "0079_auto_20181228_2039"), - ("users", "0080_auto_20190108_1726"), - ("users", "0081_auto_20190317_0302"), - ("users", "0082_auto_20190908_1338"), - ("users", "0083_user_shortcuts_enabled"), - ("users", "0084_auto_20191120_0159"), - ("users", "0085_user_email_state"), - ("users", "0086_user_email_change_date"), - ("users", "0087_request_email"), - ("users", "0088_auto_20200417_2312"), - ("users", "0089_auto_20200418_0112"), - ("users", "0090_auto_20200421_1825"), - ("users", "0091_auto_20200423_1256"), - ("users", "0092_auto_20200502_0057"), - ("users", "0093_user_profile_image"), - ("users", "0094_remove_user_profile_image"), - ("users", "0095_user_theme"), - ("users", "0096_auto_20210110_1811"), - ("cotisations", "0001_initial"), - ("cotisations", "0002_remove_facture_article"), - ("cotisations", "0003_auto_20160702_1448"), - ("cotisations", "0004_auto_20160702_1528"), - ("cotisations", "0005_auto_20160702_1532"), - ("cotisations", "0006_auto_20160702_1534"), - ("cotisations", "0007_auto_20160702_1543"), - ("cotisations", "0008_auto_20160702_1614"), - ("cotisations", "0009_remove_cotisation_user"), - ("cotisations", "0010_auto_20160702_1840"), - ("cotisations", "0011_auto_20160702_1911"), - ("cotisations", "0012_auto_20160704_0118"), - ("cotisations", "0013_auto_20160711_2240"), - ("cotisations", "0014_auto_20160712_0245"), - ("cotisations", "0015_auto_20160714_2142"), - ("cotisations", "0016_auto_20160715_0110"), - ("cotisations", "0017_auto_20170718_2329"), - ("cotisations", "0018_paiement_type_paiement"), - ("cotisations", "0019_auto_20170819_0055"), - ("cotisations", "0020_auto_20170819_0057"), - ("cotisations", "0021_auto_20170819_0104"), - ("cotisations", "0022_auto_20170824_0128"), - ("cotisations", "0023_auto_20170902_1303"), - ("cotisations", "0024_auto_20171015_2033"), - ("cotisations", "0025_article_type_user"), - ("cotisations", "0026_auto_20171028_0126"), - ("cotisations", "0027_auto_20171029_1156"), - ("cotisations", "0028_auto_20171231_0007"), - ("cotisations", "0029_auto_20180414_2056"), - ("cotisations", "0030_custom_payment"), - ("cotisations", "0031_comnpaypayment_production"), - ("cotisations", "0032_custom_invoice"), - ("cotisations", "0033_auto_20180818_1319"), - ("cotisations", "0034_auto_20180831_1532"), - ("cotisations", "0035_notepayment"), - ("cotisations", "0036_custominvoice_remark"), - ("cotisations", "0037_costestimate"), - ("cotisations", "0038_auto_20181231_1657"), - ("cotisations", "0039_freepayment"), - ("cotisations", "0040_auto_20191002_2335"), - ("cotisations", "0041_auto_20191103_2131"), - ("cotisations", "0042_auto_20191120_0159"), - ("cotisations", "0043_separation_membership_connection_p1"), - ("cotisations", "0044_separation_membership_connection_p2"), - ("cotisations", "0045_separation_membership_connection_p3"), - ("cotisations", "0046_article_need_membership"), - ("cotisations", "0047_article_need_membership_init"), - ("cotisations", "0048_auto_20201017_0018"), - ("cotisations", "0049_auto_20201102_2305"), - ("cotisations", "0050_auto_20201102_2342"), - ("cotisations", "0051_auto_20201228_1636"), - ("machines", "0001_initial"), - ("machines", "0002_auto_20160703_1444"), - ("machines", "0003_auto_20160703_1450"), - ("machines", "0004_auto_20160703_1451"), - ("machines", "0005_auto_20160703_1523"), - ("machines", "0006_auto_20160703_1813"), - ("machines", "0007_auto_20160703_1816"), - ("machines", "0008_remove_interface_ipv6"), - ("machines", "0009_auto_20160703_2358"), - ("machines", "0010_auto_20160704_0104"), - ("machines", "0011_auto_20160704_0105"), - ("machines", "0012_auto_20160704_0118"), - ("machines", "0013_auto_20160705_1014"), - ("machines", "0014_auto_20160706_1220"), - ("machines", "0015_auto_20160707_0105"), - ("machines", "0016_auto_20160708_1633"), - ("machines", "0017_auto_20160708_1645"), - ("machines", "0018_auto_20160708_1813"), - ("machines", "0019_auto_20160718_1141"), - ("machines", "0020_auto_20160718_1849"), - ("machines", "0021_auto_20161006_1943"), - ("machines", "0022_auto_20161011_1829"), - ("machines", "0023_iplist_ip_type"), - ("machines", "0024_machinetype_need_infra"), - ("machines", "0025_auto_20161023_0038"), - ("machines", "0026_auto_20161026_1348"), - ("machines", "0027_alias"), - ("machines", "0028_iptype_domaine_ip"), - ("machines", "0029_iptype_domaine_range"), - ("machines", "0030_auto_20161118_1730"), - ("machines", "0031_auto_20161119_1709"), - ("machines", "0032_auto_20161119_1850"), - ("machines", "0033_extension_need_infra"), - ("machines", "0034_iplist_need_infra"), - ("machines", "0035_auto_20161224_1201"), - ("machines", "0036_auto_20161224_1204"), - ("machines", "0037_domain_cname"), - ("machines", "0038_auto_20161224_1721"), - ("machines", "0039_auto_20161224_1732"), - ("machines", "0040_remove_interface_dns"), - ("machines", "0041_remove_ns_interface"), - ("machines", "0042_ns_ns"), - ("machines", "0043_auto_20170721_0350"), - ("machines", "0044_auto_20170808_0233"), - ("machines", "0045_auto_20170808_0348"), - ("machines", "0046_auto_20170808_1423"), - ("machines", "0047_auto_20170809_0606"), - ("machines", "0048_auto_20170823_2315"), - ("machines", "0049_vlan"), - ("machines", "0050_auto_20170826_0022"), - ("machines", "0051_iptype_vlan"), - ("machines", "0052_auto_20170828_2322"), - ("machines", "0053_text"), - ("machines", "0054_text_zone"), - ("machines", "0055_nas"), - ("machines", "0056_nas_port_access_mode"), - ("machines", "0057_nas_autocapture_mac"), - ("machines", "0058_auto_20171002_0350"), - ("machines", "0059_iptype_prefix_v6"), - ("machines", "0060_iptype_ouverture_ports"), - ("machines", "0061_auto_20171015_2033"), - ("machines", "0062_extension_origin_v6"), - ("machines", "0063_auto_20171020_0040"), - ("machines", "0064_auto_20171115_0253"), - ("machines", "0065_auto_20171115_1514"), - ("machines", "0066_srv"), - ("machines", "0067_auto_20171116_0152"), - ("machines", "0068_auto_20171116_0252"), - ("machines", "0069_auto_20171116_0822"), - ("machines", "0070_auto_20171231_1947"), - ("machines", "0071_auto_20171231_2100"), - ("machines", "0072_auto_20180108_1822"), - ("machines", "0073_auto_20180128_2203"), - ("machines", "0074_auto_20180129_0352"), - ("machines", "0075_auto_20180130_0052"), - ("machines", "0076_auto_20180130_1623"), - ("machines", "0077_auto_20180409_2243"), - ("machines", "0078_auto_20180415_1252"), - ("machines", "0079_auto_20180416_0107"), - ("machines", "0080_auto_20180502_2334"), - ("machines", "0081_auto_20180521_1413"), - ("machines", "0082_auto_20180525_2209"), - ("machines", "0083_remove_duplicate_rights"), - ("machines", "0084_dname"), - ("machines", "0085_sshfingerprint"), - ("machines", "0086_role"), - ("machines", "0087_dnssec"), - ("machines", "0088_iptype_prefix_v6_length"), - ("machines", "0089_auto_20180805_1148"), - ("machines", "0090_auto_20180805_1459"), - ("machines", "0091_auto_20180806_2310"), - ("machines", "0092_auto_20180807_0926"), - ("machines", "0093_auto_20180807_1115"), - ("machines", "0094_auto_20180815_1918"), - ("machines", "0095_auto_20180919_2225"), - ("machines", "0096_auto_20181013_1417"), - ("machines", "0097_extension_dnssec"), - ("machines", "0098_auto_20190102_1745"), - ("machines", "0099_role_recursive_dns"), - ("machines", "0100_auto_20190102_1753"), - ("machines", "0101_auto_20190108_1623"), - ("machines", "0102_auto_20190303_1611"), - ("machines", "0103_auto_20191002_2222"), - ("machines", "0104_auto_20191002_2231"), - ("machines", "0105_dname_ttl"), - ("machines", "0106_auto_20191120_0159"), - ("machines", "0107_fix_lowercase_domain"), - ("machines", "0108_ipv6list_active"), - ("preferences", "0001_initial"), - ("preferences", "0002_auto_20170625_1923"), - ("preferences", "0003_optionaluser_solde_negatif"), - ("preferences", "0004_assooption_services"), - ("preferences", "0005_auto_20170824_0139"), - ("preferences", "0006_auto_20170824_0143"), - ("preferences", "0007_auto_20170824_2056"), - ("preferences", "0008_auto_20170824_2122"), - ("preferences", "0009_assooption_utilisateur_asso"), - ("preferences", "0010_auto_20170825_0459"), - ("preferences", "0011_auto_20170825_2307"), - ("preferences", "0012_generaloption_req_expire_hrs"), - ("preferences", "0013_generaloption_site_name"), - ("preferences", "0014_generaloption_email_from"), - ("preferences", "0015_optionaltopologie_radius_general_policy"), - ("preferences", "0016_auto_20170902_1520"), - ("preferences", "0017_mailmessageoption"), - ("preferences", "0018_optionaltopologie_mac_autocapture"), - ("preferences", "0019_remove_optionaltopologie_mac_autocapture"), - ("preferences", "0020_optionalmachine_ipv6"), - ("preferences", "0021_auto_20171015_1741"), - ("preferences", "0022_auto_20171015_1758"), - ("preferences", "0023_auto_20171015_2033"), - ("preferences", "0024_optionaluser_all_can_create"), - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0025_generaloption_general_message"), - ("preferences", "0026_auto_20171216_0401"), - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0028_assooption_description"), - ("preferences", "0028_auto_20180111_1129"), - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0029_auto_20180111_1134"), - ("preferences", "0029_auto_20180318_0213"), - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0030_auto_20180111_2346"), - ("preferences", "0030_merge_20180320_1419"), - ("preferences", "0031_auto_20180323_0218"), - ("preferences", "0031_optionaluser_self_adhesion"), - ("preferences", "0032_optionaluser_min_online_payment"), - ("preferences", "0032_optionaluser_shell_default"), - ("preferences", "0033_accueiloption"), - ("preferences", "0033_generaloption_gtu_sum_up"), - ("preferences", "0034_auto_20180114_2025"), - ("preferences", "0034_auto_20180416_1120"), - ("preferences", "0035_auto_20180114_2132"), - ("preferences", "0035_optionaluser_allow_self_subscription"), - ("preferences", "0036_auto_20180114_2141"), - ("preferences", "0037_auto_20180114_2156"), - ("preferences", "0038_auto_20180114_2209"), - ("preferences", "0039_auto_20180115_0003"), - ("preferences", "0040_auto_20180129_1745"), - ("preferences", "0041_merge_20180130_0052"), - ("preferences", "0042_auto_20180222_1743"), - ("preferences", "0043_optionalmachine_create_machine"), - ("preferences", "0044_remove_payment_pass"), - ("preferences", "0045_remove_unused_payment_fields"), - ("preferences", "0046_optionaluser_mail_extension"), - ("preferences", "0047_mailcontact"), - ("preferences", "0048_auto_20180811_1515"), - ("preferences", "0049_optionaluser_self_change_shell"), - ("preferences", "0050_auto_20180818_1329"), - ("preferences", "0051_auto_20180919_2225"), - ("preferences", "0052_optionaluser_delete_notyetactive"), - ("preferences", "0053_optionaluser_self_change_room"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ("preferences", "0056_2_radiusoption"), - ("preferences", "0056_3_radiusoption"), - ("preferences", "0056_4_radiusoption"), - ("preferences", "0057_optionaluser_all_users_active"), - ("preferences", "0058_auto_20190108_1650"), - ("preferences", "0059_auto_20190120_1739"), - ("preferences", "0060_auto_20190712_1821"), - ("preferences", "0061_optionaluser_allow_archived_connexion"), - ("preferences", "0062_auto_20190910_1909"), - ("preferences", "0063_mandate"), - ("preferences", "0064_auto_20191008_1335"), - ("preferences", "0065_auto_20191010_1227"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ("preferences", "0067_auto_20191120_0159"), - ("preferences", "0068_optionaluser_allow_set_password_during_user_creation"), - ("preferences", "0069_optionaluser_disable_emailnotyetconfirmed"), - ("preferences", "0070_auto_20200419_0225"), - ("preferences", "0071_optionaluser_self_change_pseudo"), - ("topologie", "0001_initial"), - ("topologie", "0002_auto_20160703_1118"), - ("topologie", "0003_room"), - ("topologie", "0004_auto_20160703_1122"), - ("topologie", "0005_auto_20160703_1123"), - ("topologie", "0006_auto_20160703_1129"), - ("topologie", "0007_auto_20160703_1148"), - ("topologie", "0008_port_room"), - ("topologie", "0009_auto_20160703_1200"), - ("topologie", "0010_auto_20160704_2148"), - ("topologie", "0011_auto_20160704_2153"), - ("topologie", "0012_port_machine_interface"), - ("topologie", "0013_port_related"), - ("topologie", "0014_auto_20160706_1238"), - ("topologie", "0015_auto_20160706_1452"), - ("topologie", "0016_auto_20160706_1531"), - ("topologie", "0017_auto_20160718_1141"), - ("topologie", "0018_room_details"), - ("topologie", "0019_auto_20161026_1348"), - ("topologie", "0020_auto_20161119_0033"), - ("topologie", "0021_port_radius"), - ("topologie", "0022_auto_20161211_1622"), - ("topologie", "0023_auto_20170817_1654"), - ("topologie", "0023_auto_20170826_1530"), - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ("topologie", "0025_merge_20170902_1242"), - ("topologie", "0026_auto_20170902_1245"), - ("topologie", "0027_auto_20170905_1442"), - ("topologie", "0028_auto_20170913_1503"), - ("topologie", "0029_auto_20171002_0334"), - ("topologie", "0030_auto_20171004_0235"), - ("topologie", "0031_auto_20171015_2033"), - ("topologie", "0032_auto_20171026_0338"), - ("topologie", "0033_auto_20171231_1743"), - ("topologie", "0034_borne"), - ("topologie", "0035_auto_20180324_0023"), - ("topologie", "0036_transferborne"), - ("topologie", "0037_auto_20180325_0127"), - ("topologie", "0038_transfersw"), - ("topologie", "0039_port_new_switch"), - ("topologie", "0040_transferports"), - ("topologie", "0041_transferportsw"), - ("topologie", "0042_transferswitch"), - ("topologie", "0043_renamenewswitch"), - ("topologie", "0044_auto_20180326_0002"), - ("topologie", "0045_auto_20180326_0123"), - ("topologie", "0046_auto_20180326_0129"), - ("topologie", "0047_ap_machine"), - ("topologie", "0048_ap_machine"), - ("topologie", "0049_switchs_machine"), - ("topologie", "0050_port_new_switch"), - ("topologie", "0051_switchs_machine"), - ("topologie", "0052_transferports"), - ("topologie", "0053_finalsw"), - ("topologie", "0054_auto_20180326_1742"), - ("topologie", "0055_auto_20180329_0431"), - ("topologie", "0056_building_switchbay"), - ("topologie", "0057_auto_20180408_0316"), - ("topologie", "0058_remove_switch_location"), - ("topologie", "0059_auto_20180415_2249"), - ("topologie", "0060_server"), - ("topologie", "0061_portprofile"), - ("topologie", "0062_auto_20180815_1918"), - ("topologie", "0063_auto_20180919_2225"), - ("topologie", "0064_switch_automatic_provision"), - ("topologie", "0065_auto_20180927_1836"), - ("topologie", "0066_modelswitch_commercial_name"), - ("topologie", "0067_auto_20181230_1819"), - ("topologie", "0068_auto_20190102_1758"), - ("topologie", "0069_auto_20190108_1439"), - ("topologie", "0070_auto_20190218_1743"), - ("topologie", "0071_auto_20190218_1936"), - ("topologie", "0072_auto_20190720_2318"), - ("topologie", "0073_auto_20191120_0159"), - ("topologie", "0074_auto_20200419_1640"), - ] operations = [ migrations.CreateModel( name="User", diff --git a/users/migrations/0002_auto_20160630_2301.py b/users/migrations/0002_auto_20160630_2301.py deleted file mode 100644 index 766a8523..00000000 --- a/users/migrations/0002_auto_20160630_2301.py +++ /dev/null @@ -1,51 +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 = [("users", "0001_initial")] - - operations = [ - migrations.AlterField( - model_name="user", - name="pseudo", - field=models.CharField(unique=True, max_length=255), - ), - migrations.AlterField( - model_name="user", - name="state", - field=models.IntegerField( - default=0, - choices=[ - (0, "STATE_ACTIVE"), - (1, "STATE_DEACTIVATED"), - (2, "STATE_ARCHIVED"), - ], - ), - ), - ] diff --git a/users/migrations/0002_foreign_keys.py b/users/migrations/0002_foreign_keys.py index 55358f03..d93bd493 100644 --- a/users/migrations/0002_foreign_keys.py +++ b/users/migrations/0002_foreign_keys.py @@ -5,8 +5,6 @@ from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion -import ldapdb.models.fields - class Migration(migrations.Migration): @@ -16,426 +14,6 @@ class Migration(migrations.Migration): ('users', '0001_model_creation'), ] - replaces = [ - ("users", "0001_initial"), - ("users", "0002_auto_20160630_2301"), - ("users", "0003_listrights_rights"), - ("users", "0004_auto_20160701_2312"), - ("users", "0005_auto_20160702_0006"), - ("users", "0006_ban"), - ("users", "0007_auto_20160702_2322"), - ("users", "0008_user_registered"), - ("users", "0009_user_room"), - ("users", "0010_auto_20160703_1226"), - ("users", "0011_auto_20160703_1227"), - ("users", "0012_auto_20160703_1230"), - ("users", "0013_auto_20160704_1547"), - ("users", "0014_auto_20160704_1548"), - ("users", "0015_whitelist"), - ("users", "0016_auto_20160706_1220"), - ("users", "0017_auto_20160707_0105"), - ("users", "0018_auto_20160707_0115"), - ("users", "0019_auto_20160708_1633"), - ("users", "0020_request"), - ("users", "0021_ldapuser"), - ("users", "0022_ldapuser_sambasid"), - ("users", "0023_auto_20160724_1908"), - ("users", "0024_remove_ldapuser_mac_list"), - ("users", "0025_listshell"), - ("users", "0026_user_shell"), - ("users", "0027_auto_20160726_0216"), - ("users", "0028_auto_20160726_0227"), - ("users", "0029_auto_20160726_0229"), - ("users", "0030_auto_20160726_0357"), - ("users", "0031_auto_20160726_0359"), - ("users", "0032_auto_20160727_2122"), - ("users", "0033_remove_ldapuser_loginshell"), - ("users", "0034_auto_20161018_0037"), - ("users", "0035_auto_20161018_0046"), - ("users", "0036_auto_20161022_2146"), - ("users", "0037_auto_20161028_1906"), - ("users", "0038_auto_20161031_0258"), - ("users", "0039_auto_20161119_0033"), - ("users", "0040_auto_20161119_1709"), - ("users", "0041_listright_details"), - ("users", "0042_auto_20161126_2028"), - ("users", "0043_auto_20161224_1156"), - ("users", "0043_ban_state"), - ("users", "0044_user_ssh_public_key"), - ("users", "0045_merge"), - ("users", "0046_auto_20170617_1433"), - ("users", "0047_auto_20170618_0156"), - ("users", "0048_auto_20170618_0210"), - ("users", "0049_auto_20170618_1424"), - ("users", "0050_serviceuser_comment"), - ("users", "0051_user_telephone"), - ("users", "0052_ldapuser_shadowexpire"), - ("users", "0053_auto_20170626_2105"), - ("users", "0054_auto_20170626_2219"), - ("users", "0055_auto_20171003_0556"), - ("users", "0056_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ("users", "0058_auto_20171025_0154"), - ("users", "0059_auto_20171025_1854"), - ("users", "0060_auto_20171120_0317"), - ("users", "0061_auto_20171230_2033"), - ("users", "0062_auto_20171231_0056"), - ("users", "0063_auto_20171231_0140"), - ("users", "0064_auto_20171231_0150"), - ("users", "0065_auto_20171231_2053"), - ("users", "0066_grouppermissions"), - ("users", "0067_serveurpermission"), - ("users", "0068_auto_20180107_2245"), - ("users", "0069_club_mailing"), - ("users", "0070_auto_20180324_1906"), - ("users", "0071_auto_20180415_1252"), - ("users", "0072_auto_20180426_2021"), - ("users", "0073_auto_20180629_1614"), - ("users", "0074_auto_20180810_2104"), - ("users", "0074_auto_20180814_1059"), - ("users", "0075_merge_20180815_2202"), - ("users", "0076_auto_20180818_1321"), - ("users", "0077_auto_20180824_1750"), - ("users", "0078_auto_20181011_1405"), - ("users", "0079_auto_20181228_2039"), - ("users", "0080_auto_20190108_1726"), - ("users", "0081_auto_20190317_0302"), - ("users", "0082_auto_20190908_1338"), - ("users", "0083_user_shortcuts_enabled"), - ("users", "0084_auto_20191120_0159"), - ("users", "0085_user_email_state"), - ("users", "0086_user_email_change_date"), - ("users", "0087_request_email"), - ("users", "0088_auto_20200417_2312"), - ("users", "0089_auto_20200418_0112"), - ("users", "0090_auto_20200421_1825"), - ("users", "0091_auto_20200423_1256"), - ("users", "0092_auto_20200502_0057"), - ("users", "0093_user_profile_image"), - ("users", "0094_remove_user_profile_image"), - ("users", "0095_user_theme"), - ("users", "0096_auto_20210110_1811"), - ("cotisations", "0001_initial"), - ("cotisations", "0002_remove_facture_article"), - ("cotisations", "0003_auto_20160702_1448"), - ("cotisations", "0004_auto_20160702_1528"), - ("cotisations", "0005_auto_20160702_1532"), - ("cotisations", "0006_auto_20160702_1534"), - ("cotisations", "0007_auto_20160702_1543"), - ("cotisations", "0008_auto_20160702_1614"), - ("cotisations", "0009_remove_cotisation_user"), - ("cotisations", "0010_auto_20160702_1840"), - ("cotisations", "0011_auto_20160702_1911"), - ("cotisations", "0012_auto_20160704_0118"), - ("cotisations", "0013_auto_20160711_2240"), - ("cotisations", "0014_auto_20160712_0245"), - ("cotisations", "0015_auto_20160714_2142"), - ("cotisations", "0016_auto_20160715_0110"), - ("cotisations", "0017_auto_20170718_2329"), - ("cotisations", "0018_paiement_type_paiement"), - ("cotisations", "0019_auto_20170819_0055"), - ("cotisations", "0020_auto_20170819_0057"), - ("cotisations", "0021_auto_20170819_0104"), - ("cotisations", "0022_auto_20170824_0128"), - ("cotisations", "0023_auto_20170902_1303"), - ("cotisations", "0024_auto_20171015_2033"), - ("cotisations", "0025_article_type_user"), - ("cotisations", "0026_auto_20171028_0126"), - ("cotisations", "0027_auto_20171029_1156"), - ("cotisations", "0028_auto_20171231_0007"), - ("cotisations", "0029_auto_20180414_2056"), - ("cotisations", "0030_custom_payment"), - ("cotisations", "0031_comnpaypayment_production"), - ("cotisations", "0032_custom_invoice"), - ("cotisations", "0033_auto_20180818_1319"), - ("cotisations", "0034_auto_20180831_1532"), - ("cotisations", "0035_notepayment"), - ("cotisations", "0036_custominvoice_remark"), - ("cotisations", "0037_costestimate"), - ("cotisations", "0038_auto_20181231_1657"), - ("cotisations", "0039_freepayment"), - ("cotisations", "0040_auto_20191002_2335"), - ("cotisations", "0041_auto_20191103_2131"), - ("cotisations", "0042_auto_20191120_0159"), - ("cotisations", "0043_separation_membership_connection_p1"), - ("cotisations", "0044_separation_membership_connection_p2"), - ("cotisations", "0045_separation_membership_connection_p3"), - ("cotisations", "0046_article_need_membership"), - ("cotisations", "0047_article_need_membership_init"), - ("cotisations", "0048_auto_20201017_0018"), - ("cotisations", "0049_auto_20201102_2305"), - ("cotisations", "0050_auto_20201102_2342"), - ("cotisations", "0051_auto_20201228_1636"), - ("machines", "0001_initial"), - ("machines", "0002_auto_20160703_1444"), - ("machines", "0003_auto_20160703_1450"), - ("machines", "0004_auto_20160703_1451"), - ("machines", "0005_auto_20160703_1523"), - ("machines", "0006_auto_20160703_1813"), - ("machines", "0007_auto_20160703_1816"), - ("machines", "0008_remove_interface_ipv6"), - ("machines", "0009_auto_20160703_2358"), - ("machines", "0010_auto_20160704_0104"), - ("machines", "0011_auto_20160704_0105"), - ("machines", "0012_auto_20160704_0118"), - ("machines", "0013_auto_20160705_1014"), - ("machines", "0014_auto_20160706_1220"), - ("machines", "0015_auto_20160707_0105"), - ("machines", "0016_auto_20160708_1633"), - ("machines", "0017_auto_20160708_1645"), - ("machines", "0018_auto_20160708_1813"), - ("machines", "0019_auto_20160718_1141"), - ("machines", "0020_auto_20160718_1849"), - ("machines", "0021_auto_20161006_1943"), - ("machines", "0022_auto_20161011_1829"), - ("machines", "0023_iplist_ip_type"), - ("machines", "0024_machinetype_need_infra"), - ("machines", "0025_auto_20161023_0038"), - ("machines", "0026_auto_20161026_1348"), - ("machines", "0027_alias"), - ("machines", "0028_iptype_domaine_ip"), - ("machines", "0029_iptype_domaine_range"), - ("machines", "0030_auto_20161118_1730"), - ("machines", "0031_auto_20161119_1709"), - ("machines", "0032_auto_20161119_1850"), - ("machines", "0033_extension_need_infra"), - ("machines", "0034_iplist_need_infra"), - ("machines", "0035_auto_20161224_1201"), - ("machines", "0036_auto_20161224_1204"), - ("machines", "0037_domain_cname"), - ("machines", "0038_auto_20161224_1721"), - ("machines", "0039_auto_20161224_1732"), - ("machines", "0040_remove_interface_dns"), - ("machines", "0041_remove_ns_interface"), - ("machines", "0042_ns_ns"), - ("machines", "0043_auto_20170721_0350"), - ("machines", "0044_auto_20170808_0233"), - ("machines", "0045_auto_20170808_0348"), - ("machines", "0046_auto_20170808_1423"), - ("machines", "0047_auto_20170809_0606"), - ("machines", "0048_auto_20170823_2315"), - ("machines", "0049_vlan"), - ("machines", "0050_auto_20170826_0022"), - ("machines", "0051_iptype_vlan"), - ("machines", "0052_auto_20170828_2322"), - ("machines", "0053_text"), - ("machines", "0054_text_zone"), - ("machines", "0055_nas"), - ("machines", "0056_nas_port_access_mode"), - ("machines", "0057_nas_autocapture_mac"), - ("machines", "0058_auto_20171002_0350"), - ("machines", "0059_iptype_prefix_v6"), - ("machines", "0060_iptype_ouverture_ports"), - ("machines", "0061_auto_20171015_2033"), - ("machines", "0062_extension_origin_v6"), - ("machines", "0063_auto_20171020_0040"), - ("machines", "0064_auto_20171115_0253"), - ("machines", "0065_auto_20171115_1514"), - ("machines", "0066_srv"), - ("machines", "0067_auto_20171116_0152"), - ("machines", "0068_auto_20171116_0252"), - ("machines", "0069_auto_20171116_0822"), - ("machines", "0070_auto_20171231_1947"), - ("machines", "0071_auto_20171231_2100"), - ("machines", "0072_auto_20180108_1822"), - ("machines", "0073_auto_20180128_2203"), - ("machines", "0074_auto_20180129_0352"), - ("machines", "0075_auto_20180130_0052"), - ("machines", "0076_auto_20180130_1623"), - ("machines", "0077_auto_20180409_2243"), - ("machines", "0078_auto_20180415_1252"), - ("machines", "0079_auto_20180416_0107"), - ("machines", "0080_auto_20180502_2334"), - ("machines", "0081_auto_20180521_1413"), - ("machines", "0082_auto_20180525_2209"), - ("machines", "0083_remove_duplicate_rights"), - ("machines", "0084_dname"), - ("machines", "0085_sshfingerprint"), - ("machines", "0086_role"), - ("machines", "0087_dnssec"), - ("machines", "0088_iptype_prefix_v6_length"), - ("machines", "0089_auto_20180805_1148"), - ("machines", "0090_auto_20180805_1459"), - ("machines", "0091_auto_20180806_2310"), - ("machines", "0092_auto_20180807_0926"), - ("machines", "0093_auto_20180807_1115"), - ("machines", "0094_auto_20180815_1918"), - ("machines", "0095_auto_20180919_2225"), - ("machines", "0096_auto_20181013_1417"), - ("machines", "0097_extension_dnssec"), - ("machines", "0098_auto_20190102_1745"), - ("machines", "0099_role_recursive_dns"), - ("machines", "0100_auto_20190102_1753"), - ("machines", "0101_auto_20190108_1623"), - ("machines", "0102_auto_20190303_1611"), - ("machines", "0103_auto_20191002_2222"), - ("machines", "0104_auto_20191002_2231"), - ("machines", "0105_dname_ttl"), - ("machines", "0106_auto_20191120_0159"), - ("machines", "0107_fix_lowercase_domain"), - ("machines", "0108_ipv6list_active"), - ("preferences", "0001_initial"), - ("preferences", "0002_auto_20170625_1923"), - ("preferences", "0003_optionaluser_solde_negatif"), - ("preferences", "0004_assooption_services"), - ("preferences", "0005_auto_20170824_0139"), - ("preferences", "0006_auto_20170824_0143"), - ("preferences", "0007_auto_20170824_2056"), - ("preferences", "0008_auto_20170824_2122"), - ("preferences", "0009_assooption_utilisateur_asso"), - ("preferences", "0010_auto_20170825_0459"), - ("preferences", "0011_auto_20170825_2307"), - ("preferences", "0012_generaloption_req_expire_hrs"), - ("preferences", "0013_generaloption_site_name"), - ("preferences", "0014_generaloption_email_from"), - ("preferences", "0015_optionaltopologie_radius_general_policy"), - ("preferences", "0016_auto_20170902_1520"), - ("preferences", "0017_mailmessageoption"), - ("preferences", "0018_optionaltopologie_mac_autocapture"), - ("preferences", "0019_remove_optionaltopologie_mac_autocapture"), - ("preferences", "0020_optionalmachine_ipv6"), - ("preferences", "0021_auto_20171015_1741"), - ("preferences", "0022_auto_20171015_1758"), - ("preferences", "0023_auto_20171015_2033"), - ("preferences", "0024_optionaluser_all_can_create"), - ("preferences", "0025_auto_20171231_2142"), - ("preferences", "0025_generaloption_general_message"), - ("preferences", "0026_auto_20171216_0401"), - ("preferences", "0027_merge_20180106_2019"), - ("preferences", "0028_assooption_description"), - ("preferences", "0028_auto_20180111_1129"), - ("preferences", "0028_auto_20180128_2203"), - ("preferences", "0029_auto_20180111_1134"), - ("preferences", "0029_auto_20180318_0213"), - ("preferences", "0029_auto_20180318_1005"), - ("preferences", "0030_auto_20180111_2346"), - ("preferences", "0030_merge_20180320_1419"), - ("preferences", "0031_auto_20180323_0218"), - ("preferences", "0031_optionaluser_self_adhesion"), - ("preferences", "0032_optionaluser_min_online_payment"), - ("preferences", "0032_optionaluser_shell_default"), - ("preferences", "0033_accueiloption"), - ("preferences", "0033_generaloption_gtu_sum_up"), - ("preferences", "0034_auto_20180114_2025"), - ("preferences", "0034_auto_20180416_1120"), - ("preferences", "0035_auto_20180114_2132"), - ("preferences", "0035_optionaluser_allow_self_subscription"), - ("preferences", "0036_auto_20180114_2141"), - ("preferences", "0037_auto_20180114_2156"), - ("preferences", "0038_auto_20180114_2209"), - ("preferences", "0039_auto_20180115_0003"), - ("preferences", "0040_auto_20180129_1745"), - ("preferences", "0041_merge_20180130_0052"), - ("preferences", "0042_auto_20180222_1743"), - ("preferences", "0043_optionalmachine_create_machine"), - ("preferences", "0044_remove_payment_pass"), - ("preferences", "0045_remove_unused_payment_fields"), - ("preferences", "0046_optionaluser_mail_extension"), - ("preferences", "0047_mailcontact"), - ("preferences", "0048_auto_20180811_1515"), - ("preferences", "0049_optionaluser_self_change_shell"), - ("preferences", "0050_auto_20180818_1329"), - ("preferences", "0051_auto_20180919_2225"), - ("preferences", "0052_optionaluser_delete_notyetactive"), - ("preferences", "0053_optionaluser_self_change_room"), - ("preferences", "0055_generaloption_main_site_url"), - ("preferences", "0056_1_radiusoption"), - ("preferences", "0056_2_radiusoption"), - ("preferences", "0056_3_radiusoption"), - ("preferences", "0056_4_radiusoption"), - ("preferences", "0057_optionaluser_all_users_active"), - ("preferences", "0058_auto_20190108_1650"), - ("preferences", "0059_auto_20190120_1739"), - ("preferences", "0060_auto_20190712_1821"), - ("preferences", "0061_optionaluser_allow_archived_connexion"), - ("preferences", "0062_auto_20190910_1909"), - ("preferences", "0063_mandate"), - ("preferences", "0064_auto_20191008_1335"), - ("preferences", "0065_auto_20191010_1227"), - ("preferences", "0066_optionalmachine_default_dns_ttl"), - ("preferences", "0067_auto_20191120_0159"), - ("preferences", "0068_optionaluser_allow_set_password_during_user_creation"), - ("preferences", "0069_optionaluser_disable_emailnotyetconfirmed"), - ("preferences", "0070_auto_20200419_0225"), - ("preferences", "0071_optionaluser_self_change_pseudo"), - ("topologie", "0001_initial"), - ("topologie", "0002_auto_20160703_1118"), - ("topologie", "0003_room"), - ("topologie", "0004_auto_20160703_1122"), - ("topologie", "0005_auto_20160703_1123"), - ("topologie", "0006_auto_20160703_1129"), - ("topologie", "0007_auto_20160703_1148"), - ("topologie", "0008_port_room"), - ("topologie", "0009_auto_20160703_1200"), - ("topologie", "0010_auto_20160704_2148"), - ("topologie", "0011_auto_20160704_2153"), - ("topologie", "0012_port_machine_interface"), - ("topologie", "0013_port_related"), - ("topologie", "0014_auto_20160706_1238"), - ("topologie", "0015_auto_20160706_1452"), - ("topologie", "0016_auto_20160706_1531"), - ("topologie", "0017_auto_20160718_1141"), - ("topologie", "0018_room_details"), - ("topologie", "0019_auto_20161026_1348"), - ("topologie", "0020_auto_20161119_0033"), - ("topologie", "0021_port_radius"), - ("topologie", "0022_auto_20161211_1622"), - ("topologie", "0023_auto_20170817_1654"), - ("topologie", "0023_auto_20170826_1530"), - ("topologie", "0024_auto_20170818_1021"), - ("topologie", "0024_auto_20170826_1800"), - ("topologie", "0025_merge_20170902_1242"), - ("topologie", "0026_auto_20170902_1245"), - ("topologie", "0027_auto_20170905_1442"), - ("topologie", "0028_auto_20170913_1503"), - ("topologie", "0029_auto_20171002_0334"), - ("topologie", "0030_auto_20171004_0235"), - ("topologie", "0031_auto_20171015_2033"), - ("topologie", "0032_auto_20171026_0338"), - ("topologie", "0033_auto_20171231_1743"), - ("topologie", "0034_borne"), - ("topologie", "0035_auto_20180324_0023"), - ("topologie", "0036_transferborne"), - ("topologie", "0037_auto_20180325_0127"), - ("topologie", "0038_transfersw"), - ("topologie", "0039_port_new_switch"), - ("topologie", "0040_transferports"), - ("topologie", "0041_transferportsw"), - ("topologie", "0042_transferswitch"), - ("topologie", "0043_renamenewswitch"), - ("topologie", "0044_auto_20180326_0002"), - ("topologie", "0045_auto_20180326_0123"), - ("topologie", "0046_auto_20180326_0129"), - ("topologie", "0047_ap_machine"), - ("topologie", "0048_ap_machine"), - ("topologie", "0049_switchs_machine"), - ("topologie", "0050_port_new_switch"), - ("topologie", "0051_switchs_machine"), - ("topologie", "0052_transferports"), - ("topologie", "0053_finalsw"), - ("topologie", "0054_auto_20180326_1742"), - ("topologie", "0055_auto_20180329_0431"), - ("topologie", "0056_building_switchbay"), - ("topologie", "0057_auto_20180408_0316"), - ("topologie", "0058_remove_switch_location"), - ("topologie", "0059_auto_20180415_2249"), - ("topologie", "0060_server"), - ("topologie", "0061_portprofile"), - ("topologie", "0062_auto_20180815_1918"), - ("topologie", "0063_auto_20180919_2225"), - ("topologie", "0064_switch_automatic_provision"), - ("topologie", "0065_auto_20180927_1836"), - ("topologie", "0066_modelswitch_commercial_name"), - ("topologie", "0067_auto_20181230_1819"), - ("topologie", "0068_auto_20190102_1758"), - ("topologie", "0069_auto_20190108_1439"), - ("topologie", "0070_auto_20190218_1743"), - ("topologie", "0071_auto_20190218_1936"), - ("topologie", "0072_auto_20190720_2318"), - ("topologie", "0073_auto_20191120_0159"), - ("topologie", "0074_auto_20200419_1640"), - ] - operations = [ migrations.AddField( model_name='adherent', diff --git a/users/migrations/0003_listrights_rights.py b/users/migrations/0003_listrights_rights.py deleted file mode 100644 index 29c07d99..00000000 --- a/users/migrations/0003_listrights_rights.py +++ /dev/null @@ -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 = [("users", "0002_auto_20160630_2301")] - - operations = [ - migrations.CreateModel( - name="ListRights", - fields=[ - ( - "id", - models.AutoField( - serialize=False, - primary_key=True, - auto_created=True, - verbose_name="ID", - ), - ), - ("listright", models.CharField(max_length=255)), - ], - ), - migrations.CreateModel( - name="Rights", - fields=[ - ( - "id", - models.AutoField( - serialize=False, - primary_key=True, - auto_created=True, - verbose_name="ID", - ), - ), - ( - "right", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - to="users.ListRights", - ), - ), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, to="users.User" - ), - ), - ], - ), - ] diff --git a/users/migrations/0004_auto_20160701_2312.py b/users/migrations/0004_auto_20160701_2312.py deleted file mode 100644 index f7c55ca3..00000000 --- a/users/migrations/0004_auto_20160701_2312.py +++ /dev/null @@ -1,36 +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 = [("users", "0003_listrights_rights")] - - operations = [ - migrations.RenameModel(old_name="ListRights", new_name="ListRight"), - migrations.RenameModel(old_name="Rights", new_name="Right"), - ] diff --git a/users/migrations/0005_auto_20160702_0006.py b/users/migrations/0005_auto_20160702_0006.py deleted file mode 100644 index 33515727..00000000 --- a/users/migrations/0005_auto_20160702_0006.py +++ /dev/null @@ -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 = [("users", "0004_auto_20160701_2312")] - - operations = [ - migrations.AlterUniqueTogether( - name="right", unique_together=set([("user", "right")]) - ) - ] diff --git a/users/migrations/0006_ban.py b/users/migrations/0006_ban.py deleted file mode 100644 index 1b9de646..00000000 --- a/users/migrations/0006_ban.py +++ /dev/null @@ -1,58 +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="Ban", - fields=[ - ( - "id", - models.AutoField( - serialize=False, - auto_created=True, - verbose_name="ID", - primary_key=True, - ), - ), - ("raison", models.CharField(max_length=255)), - ("date_start", models.DateTimeField(help_text="%m/%d/%y %H:%M:%S")), - ("date_end", models.DateTimeField(help_text="%m/%d/%y %H:%M:%S")), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, to="users.User" - ), - ), - ], - ) - ] diff --git a/users/migrations/0007_auto_20160702_2322.py b/users/migrations/0007_auto_20160702_2322.py deleted file mode 100644 index b24f6fe3..00000000 --- a/users/migrations/0007_auto_20160702_2322.py +++ /dev/null @@ -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 = [("users", "0006_ban")] - - operations = [ - migrations.AlterField( - model_name="ban", - name="date_start", - field=models.DateTimeField(auto_now_add=True), - ) - ] diff --git a/users/migrations/0008_user_registered.py b/users/migrations/0008_user_registered.py deleted file mode 100644 index 46263703..00000000 --- a/users/migrations/0008_user_registered.py +++ /dev/null @@ -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 -from django.utils.timezone import utc -import datetime - - -class Migration(migrations.Migration): - - dependencies = [("users", "0007_auto_20160702_2322")] - - operations = [ - migrations.AddField( - model_name="user", - name="registered", - field=models.DateTimeField( - auto_now_add=True, - default=datetime.datetime(2016, 7, 2, 23, 25, 21, 698883, tzinfo=utc), - ), - preserve_default=False, - ) - ] diff --git a/users/migrations/0009_user_room.py b/users/migrations/0009_user_room.py deleted file mode 100644 index f5a11f84..00000000 --- a/users/migrations/0009_user_room.py +++ /dev/null @@ -1,48 +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 = [ - ("topologie", "0009_auto_20160703_1200"), - ("users", "0008_user_registered"), - ] - - operations = [ - migrations.AddField( - model_name="user", - name="room", - field=models.ForeignKey( - to="topologie.Room", - on_delete=django.db.models.deletion.PROTECT, - default=1, - ), - preserve_default=False, - ) - ] diff --git a/users/migrations/0010_auto_20160703_1226.py b/users/migrations/0010_auto_20160703_1226.py deleted file mode 100644 index 12fc1c40..00000000 --- a/users/migrations/0010_auto_20160703_1226.py +++ /dev/null @@ -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 = [("users", "0009_user_room")] - - operations = [ - migrations.AlterField( - model_name="user", - name="room", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - blank=True, - to="topologie.Room", - null=True, - ), - ) - ] diff --git a/users/migrations/0011_auto_20160703_1227.py b/users/migrations/0011_auto_20160703_1227.py deleted file mode 100644 index e7784a4f..00000000 --- a/users/migrations/0011_auto_20160703_1227.py +++ /dev/null @@ -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 = [("users", "0010_auto_20160703_1226")] - - operations = [ - migrations.AlterField( - model_name="user", - name="room", - field=models.ForeignKey( - null=True, - blank=True, - unique=True, - on_delete=django.db.models.deletion.PROTECT, - to="topologie.Room", - ), - ) - ] diff --git a/users/migrations/0012_auto_20160703_1230.py b/users/migrations/0012_auto_20160703_1230.py deleted file mode 100644 index 984a0dce..00000000 --- a/users/migrations/0012_auto_20160703_1230.py +++ /dev/null @@ -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 = [("users", "0011_auto_20160703_1227")] - - operations = [ - migrations.AlterField( - model_name="user", - name="room", - field=models.OneToOneField( - blank=True, - on_delete=django.db.models.deletion.PROTECT, - to="topologie.Room", - null=True, - ), - ) - ] diff --git a/users/migrations/0013_auto_20160704_1547.py b/users/migrations/0013_auto_20160704_1547.py deleted file mode 100644 index c99c31be..00000000 --- a/users/migrations/0013_auto_20160704_1547.py +++ /dev/null @@ -1,48 +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 = [("users", "0012_auto_20160703_1230")] - - operations = [ - migrations.AddField( - model_name="user", - name="comment", - field=models.CharField( - max_length=255, - help_text="Infos sur l'etablissement (optionnel)", - blank=True, - ), - ), - migrations.AlterField( - model_name="user", - name="promo", - field=models.CharField(max_length=255, blank=True), - ), - ] diff --git a/users/migrations/0014_auto_20160704_1548.py b/users/migrations/0014_auto_20160704_1548.py deleted file mode 100644 index 5b0e99b4..00000000 --- a/users/migrations/0014_auto_20160704_1548.py +++ /dev/null @@ -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 = [("users", "0013_auto_20160704_1547")] - - operations = [ - migrations.RemoveField(model_name="user", name="promo"), - migrations.AlterField( - model_name="user", - name="comment", - field=models.CharField( - blank=True, help_text="Commentaire, promo", max_length=255 - ), - ), - ] diff --git a/users/migrations/0015_whitelist.py b/users/migrations/0015_whitelist.py deleted file mode 100644 index 72c59d34..00000000 --- a/users/migrations/0015_whitelist.py +++ /dev/null @@ -1,58 +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", "0014_auto_20160704_1548")] - - operations = [ - migrations.CreateModel( - name="Whitelist", - fields=[ - ( - "id", - models.AutoField( - serialize=False, - verbose_name="ID", - auto_created=True, - primary_key=True, - ), - ), - ("raison", models.CharField(max_length=255)), - ("date_start", models.DateTimeField(auto_now_add=True)), - ("date_end", models.DateTimeField(help_text="%m/%d/%y %H:%M:%S")), - ( - "user", - models.ForeignKey( - to="users.User", on_delete=django.db.models.deletion.PROTECT - ), - ), - ], - ) - ] diff --git a/users/migrations/0016_auto_20160706_1220.py b/users/migrations/0016_auto_20160706_1220.py deleted file mode 100644 index 874f3231..00000000 --- a/users/migrations/0016_auto_20160706_1220.py +++ /dev/null @@ -1,55 +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 users.models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0015_whitelist")] - - operations = [ - migrations.AlterField( - model_name="ban", - name="date_end", - field=models.DateTimeField(help_text="%d/%m/%y %H:%M:%S"), - ), - migrations.AlterField( - model_name="user", - name="pseudo", - field=models.CharField( - unique=True, - validators=[users.models.linux_user_validator], - max_length=32, - help_text="Doit contenir uniquement des lettres, chiffres, ou tirets", - ), - ), - migrations.AlterField( - model_name="whitelist", - name="date_end", - field=models.DateTimeField(help_text="%d/%m/%y %H:%M:%S"), - ), - ] diff --git a/users/migrations/0017_auto_20160707_0105.py b/users/migrations/0017_auto_20160707_0105.py deleted file mode 100644 index a0e99bb9..00000000 --- a/users/migrations/0017_auto_20160707_0105.py +++ /dev/null @@ -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 models, migrations - - -def move_passwords(apps, schema_editor): - User = apps.get_model("users", "User") - for row in User.objects.all(): - row.password = row.pwd_ssha - row.save() - - -class Migration(migrations.Migration): - - dependencies = [("users", "0016_auto_20160706_1220")] - - operations = [ - migrations.AddField( - model_name="user", - name="last_login", - field=models.DateTimeField( - null=True, blank=True, verbose_name="last login" - ), - ), - migrations.AddField( - model_name="user", - name="password", - field=models.CharField( - verbose_name="password", default="!", max_length=128 - ), - preserve_default=False, - ), - migrations.RunPython(move_passwords, reverse_code=migrations.RunPython.noop), - ] diff --git a/users/migrations/0018_auto_20160707_0115.py b/users/migrations/0018_auto_20160707_0115.py deleted file mode 100644 index 0d0f8ac4..00000000 --- a/users/migrations/0018_auto_20160707_0115.py +++ /dev/null @@ -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 models, migrations - - -class Migration(migrations.Migration): - - dependencies = [("users", "0017_auto_20160707_0105")] - - operations = [migrations.RemoveField(model_name="user", name="pwd_ssha")] diff --git a/users/migrations/0019_auto_20160708_1633.py b/users/migrations/0019_auto_20160708_1633.py deleted file mode 100644 index 2bdb8eaa..00000000 --- a/users/migrations/0019_auto_20160708_1633.py +++ /dev/null @@ -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 = [("users", "0018_auto_20160707_0115")] - - operations = [ - migrations.AlterField( - model_name="listright", - name="listright", - field=models.CharField(unique=True, max_length=255), - ) - ] diff --git a/users/migrations/0020_request.py b/users/migrations/0020_request.py deleted file mode 100644 index 0c0effad..00000000 --- a/users/migrations/0020_request.py +++ /dev/null @@ -1,66 +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 -from django.conf import settings - - -class Migration(migrations.Migration): - - dependencies = [("users", "0019_auto_20160708_1633")] - - operations = [ - migrations.CreateModel( - name="Request", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - verbose_name="ID", - primary_key=True, - serialize=False, - ), - ), - ( - "type", - models.CharField( - choices=[("PW", "Mot de passe"), ("EM", "Email")], max_length=2 - ), - ), - ("token", models.CharField(max_length=32)), - ("created_at", models.DateTimeField(auto_now_add=True)), - ("expires_at", models.DateTimeField()), - ( - "user", - models.ForeignKey( - to=settings.AUTH_USER_MODEL, - on_delete=django.db.models.deletion.PROTECT, - ), - ), - ], - ) - ] diff --git a/users/migrations/0021_ldapuser.py b/users/migrations/0021_ldapuser.py deleted file mode 100644 index 7ba729b5..00000000 --- a/users/migrations/0021_ldapuser.py +++ /dev/null @@ -1,97 +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 ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0020_request")] - - operations = [ - migrations.CreateModel( - name="LdapUser", - fields=[ - ("dn", models.CharField(max_length=200)), - ("gid", ldapdb.models.fields.IntegerField(db_column="gidNumber")), - ( - "name", - ldapdb.models.fields.CharField( - primary_key=True, - max_length=200, - db_column="cn", - serialize=False, - ), - ), - ( - "uid", - ldapdb.models.fields.CharField(max_length=200, db_column="uid"), - ), - ( - "uidNumber", - ldapdb.models.fields.IntegerField( - unique=True, db_column="uidNumber" - ), - ), - ("sn", ldapdb.models.fields.CharField(max_length=200, db_column="sn")), - ( - "loginShell", - ldapdb.models.fields.CharField( - default="/bin/zsh", max_length=200, db_column="loginShell" - ), - ), - ( - "mail", - ldapdb.models.fields.CharField(max_length=200, db_column="mail"), - ), - ( - "given_name", - ldapdb.models.fields.CharField( - max_length=200, db_column="givenName" - ), - ), - ( - "home_directory", - ldapdb.models.fields.CharField( - max_length=200, db_column="homeDirectory" - ), - ), - ( - "dialupAccess", - ldapdb.models.fields.CharField( - max_length=200, db_column="dialupAccess" - ), - ), - ( - "mac_list", - ldapdb.models.fields.CharField( - max_length=200, db_column="radiusCallingStationId" - ), - ), - ], - options={"abstract": False}, - ) - ] diff --git a/users/migrations/0022_ldapuser_sambasid.py b/users/migrations/0022_ldapuser_sambasid.py deleted file mode 100644 index 71f23bb5..00000000 --- a/users/migrations/0022_ldapuser_sambasid.py +++ /dev/null @@ -1,52 +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 ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0021_ldapuser")] - - operations = [ - migrations.SeparateDatabaseAndState( - state_operations=[ - migrations.AddField( - model_name="ldapuser", - name="sambaSID", - field=ldapdb.models.fields.IntegerField( - db_column="sambaSID", unique=True, null=True - ), - preserve_default=False, - ) - ], - database_operations=[ - migrations.RunSQL( - 'ALTER TABLE "users_ldapuser" ADD COLUMN "sambaSID" integer NULL UNIQUE;' - ) - ], - ) - ] diff --git a/users/migrations/0023_auto_20160724_1908.py b/users/migrations/0023_auto_20160724_1908.py deleted file mode 100644 index 7fbf6c60..00000000 --- a/users/migrations/0023_auto_20160724_1908.py +++ /dev/null @@ -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 ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0022_ldapuser_sambasid")] - - operations = [ - migrations.AlterField( - model_name="ldapuser", - name="sambaSID", - field=ldapdb.models.fields.IntegerField(db_column="sambaSID", unique=True), - ) - ] diff --git a/users/migrations/0024_remove_ldapuser_mac_list.py b/users/migrations/0024_remove_ldapuser_mac_list.py deleted file mode 100644 index 57c4a53c..00000000 --- a/users/migrations/0024_remove_ldapuser_mac_list.py +++ /dev/null @@ -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 = [("users", "0023_auto_20160724_1908")] - - operations = [migrations.RemoveField(model_name="ldapuser", name="mac_list")] diff --git a/users/migrations/0025_listshell.py b/users/migrations/0025_listshell.py deleted file mode 100644 index 3106e4f1..00000000 --- a/users/migrations/0025_listshell.py +++ /dev/null @@ -1,49 +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 = [("users", "0024_remove_ldapuser_mac_list")] - - operations = [ - migrations.CreateModel( - name="ListShell", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - serialize=False, - primary_key=True, - verbose_name="ID", - ), - ), - ("shell", models.CharField(unique=True, max_length=255)), - ], - ) - ] diff --git a/users/migrations/0026_user_shell.py b/users/migrations/0026_user_shell.py deleted file mode 100644 index 9b995993..00000000 --- a/users/migrations/0026_user_shell.py +++ /dev/null @@ -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 = [("users", "0025_listshell")] - - operations = [ - migrations.AddField( - model_name="user", - name="shell", - field=models.ForeignKey( - to="users.ListShell", - default=1, - on_delete=django.db.models.deletion.PROTECT, - ), - preserve_default=False, - ) - ] diff --git a/users/migrations/0027_auto_20160726_0216.py b/users/migrations/0027_auto_20160726_0216.py deleted file mode 100644 index 56938bb7..00000000 --- a/users/migrations/0027_auto_20160726_0216.py +++ /dev/null @@ -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.db.models.deletion -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0026_user_shell")] - - operations = [ - migrations.CreateModel( - name="LdapUserGroup", - fields=[ - ("dn", models.CharField(max_length=200)), - ("gid", ldapdb.models.fields.IntegerField(db_column="gidNumber")), - ( - "members", - ldapdb.models.fields.ListField(db_column="memberUid", blank=True), - ), - ( - "name", - ldapdb.models.fields.CharField( - db_column="cn", - primary_key=True, - serialize=False, - max_length=200, - ), - ), - ], - options={"abstract": False}, - ) - ] diff --git a/users/migrations/0028_auto_20160726_0227.py b/users/migrations/0028_auto_20160726_0227.py deleted file mode 100644 index ce85ac01..00000000 --- a/users/migrations/0028_auto_20160726_0227.py +++ /dev/null @@ -1,99 +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 ldapdb.models.fields -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("users", "0027_auto_20160726_0216")] - - operations = [ - migrations.SeparateDatabaseAndState( - state_operations=[ - migrations.AddField( - model_name="ldapuser", - name="display_name", - field=ldapdb.models.fields.CharField( - null=True, blank=True, max_length=200, db_column="displayName" - ), - ), - migrations.AddField( - model_name="ldapuser", - name="sambat_nt_password", - field=ldapdb.models.fields.CharField( - null=True, - blank=True, - max_length=200, - db_column="sambaNTPassword", - ), - ), - migrations.AddField( - model_name="ldapuser", - name="user_password", - field=ldapdb.models.fields.CharField( - null=True, blank=True, max_length=200, db_column="userPassword" - ), - ), - ], - database_operations=[ - migrations.RunSQL( - 'ALTER TABLE users_ldapuser ADD COLUMN "displayName" varchar(200) NULL;' - ), - migrations.RunSQL( - 'ALTER TABLE users_ldapuser ADD COLUMN "sambaNTPassword" varchar(200) NULL;' - ), - migrations.RunSQL( - 'ALTER TABLE users_ldapuser ADD COLUMN "userPassword" varchar(200) NULL;' - ), - ], - ), - migrations.AddField( - model_name="ldapuser", - name="macs", - field=ldapdb.models.fields.ListField( - null=True, - blank=True, - max_length=200, - db_column="radiusCallingStationId", - ), - ), - migrations.AddField( - model_name="listright", - name="gid", - field=models.IntegerField(null=True, unique=True), - ), - migrations.AlterField( - model_name="user", - name="shell", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - default=1, - to="users.ListShell", - ), - ), - ] diff --git a/users/migrations/0029_auto_20160726_0229.py b/users/migrations/0029_auto_20160726_0229.py deleted file mode 100644 index 7213f921..00000000 --- a/users/migrations/0029_auto_20160726_0229.py +++ /dev/null @@ -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 ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0028_auto_20160726_0227")] - - operations = [ - migrations.AlterField( - model_name="ldapuser", - name="display_name", - field=ldapdb.models.fields.CharField( - db_column="displayName", max_length=200 - ), - ) - ] diff --git a/users/migrations/0030_auto_20160726_0357.py b/users/migrations/0030_auto_20160726_0357.py deleted file mode 100644 index 97f17ed6..00000000 --- a/users/migrations/0030_auto_20160726_0357.py +++ /dev/null @@ -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 -import django.db.models.deletion -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0029_auto_20160726_0229")] - - operations = [ - migrations.AlterField( - model_name="ldapuser", - name="display_name", - field=ldapdb.models.fields.CharField( - null=True, max_length=200, db_column="displayName", blank=True - ), - ) - ] diff --git a/users/migrations/0031_auto_20160726_0359.py b/users/migrations/0031_auto_20160726_0359.py deleted file mode 100644 index 064a48db..00000000 --- a/users/migrations/0031_auto_20160726_0359.py +++ /dev/null @@ -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 ldapdb.models.fields -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("users", "0030_auto_20160726_0357")] - - operations = [ - migrations.AlterField( - model_name="user", - name="shell", - field=models.ForeignKey( - to="users.ListShell", - on_delete=django.db.models.deletion.PROTECT, - null=True, - blank=True, - ), - ) - ] diff --git a/users/migrations/0032_auto_20160727_2122.py b/users/migrations/0032_auto_20160727_2122.py deleted file mode 100644 index 69d14e3e..00000000 --- a/users/migrations/0032_auto_20160727_2122.py +++ /dev/null @@ -1,89 +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 users.models -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0031_auto_20160726_0359")] - - operations = [ - migrations.CreateModel( - name="LdapServiceUser", - fields=[ - ("dn", models.CharField(max_length=200)), - ( - "name", - ldapdb.models.fields.CharField( - db_column="cn", - max_length=200, - serialize=False, - primary_key=True, - ), - ), - ( - "user_password", - ldapdb.models.fields.CharField( - db_column="userPassword", blank=True, max_length=200, null=True - ), - ), - ], - options={"abstract": False}, - ), - migrations.CreateModel( - name="ServiceUser", - fields=[ - ( - "id", - models.AutoField( - verbose_name="ID", - auto_created=True, - primary_key=True, - serialize=False, - ), - ), - ("password", models.CharField(max_length=128, verbose_name="password")), - ( - "last_login", - models.DateTimeField( - blank=True, verbose_name="last login", null=True - ), - ), - ( - "pseudo", - models.CharField( - max_length=32, - help_text="Doit contenir uniquement des lettres, chiffres, ou tirets", - unique=True, - validators=[users.models.linux_user_validator], - ), - ), - ], - options={"abstract": False}, - ), - ] diff --git a/users/migrations/0033_remove_ldapuser_loginshell.py b/users/migrations/0033_remove_ldapuser_loginshell.py deleted file mode 100644 index 34a15e39..00000000 --- a/users/migrations/0033_remove_ldapuser_loginshell.py +++ /dev/null @@ -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 = [("users", "0032_auto_20160727_2122")] - - operations = [migrations.RemoveField(model_name="ldapuser", name="loginShell")] diff --git a/users/migrations/0034_auto_20161018_0037.py b/users/migrations/0034_auto_20161018_0037.py deleted file mode 100644 index 428f6d50..00000000 --- a/users/migrations/0034_auto_20161018_0037.py +++ /dev/null @@ -1,71 +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 ldapdb.models.fields -import django.db.models.deletion -import users.models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0033_remove_ldapuser_loginshell")] - - operations = [ - migrations.SeparateDatabaseAndState( - state_operations=[ - migrations.AddField( - model_name="ldapuser", - name="login_shell", - field=ldapdb.models.fields.CharField( - blank=True, db_column="loginShell", max_length=200, null=True - ), - ) - ], - database_operations=[ - migrations.RunSQL( - 'ALTER TABLE users_ldapuser ADD COLUMN "loginShell" varchar(200) NULL;' - ) - ], - ), - migrations.AddField( - model_name="user", - name="rezo_rez_uid", - field=models.IntegerField(blank=True, unique=True, null=True), - ), - migrations.AddField( - model_name="user", name="uid_number", field=models.IntegerField(unique=True) - ), - migrations.AlterField( - model_name="user", - name="school", - field=models.ForeignKey( - blank=True, - on_delete=django.db.models.deletion.PROTECT, - to="users.School", - null=True, - ), - ), - ] diff --git a/users/migrations/0035_auto_20161018_0046.py b/users/migrations/0035_auto_20161018_0046.py deleted file mode 100644 index 2dfc9e41..00000000 --- a/users/migrations/0035_auto_20161018_0046.py +++ /dev/null @@ -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 users.models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0034_auto_20161018_0037")] - - operations = [ - migrations.AlterField( - model_name="user", - name="uid_number", - field=models.IntegerField( - unique=True, default=users.models.get_fresh_user_uid - ), - ) - ] diff --git a/users/migrations/0036_auto_20161022_2146.py b/users/migrations/0036_auto_20161022_2146.py deleted file mode 100644 index d053df2c..00000000 --- a/users/migrations/0036_auto_20161022_2146.py +++ /dev/null @@ -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 = [("users", "0035_auto_20161018_0046")] - - operations = [ - migrations.AlterField( - model_name="user", - name="state", - field=models.IntegerField( - default=0, - choices=[ - (0, "STATE_ACTIVE"), - (1, "STATE_DISABLED"), - (2, "STATE_ARCHIVE"), - ], - ), - ) - ] diff --git a/users/migrations/0037_auto_20161028_1906.py b/users/migrations/0037_auto_20161028_1906.py deleted file mode 100644 index cb60be1c..00000000 --- a/users/migrations/0037_auto_20161028_1906.py +++ /dev/null @@ -1,49 +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 = [("users", "0036_auto_20161022_2146")] - - operations = [ - migrations.AlterField( - model_name="ldapserviceuser", - name="dn", - field=models.CharField(serialize=False, primary_key=True, max_length=200), - ), - migrations.AlterField( - model_name="ldapuser", - name="dn", - field=models.CharField(serialize=False, primary_key=True, max_length=200), - ), - migrations.AlterField( - model_name="ldapusergroup", - name="dn", - field=models.CharField(serialize=False, primary_key=True, max_length=200), - ), - ] diff --git a/users/migrations/0038_auto_20161031_0258.py b/users/migrations/0038_auto_20161031_0258.py deleted file mode 100644 index 14d6ff72..00000000 --- a/users/migrations/0038_auto_20161031_0258.py +++ /dev/null @@ -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 = [("users", "0037_auto_20161028_1906")] - - operations = [ - migrations.AlterField( - model_name="ldapserviceuser", - name="dn", - field=models.CharField(max_length=200), - ), - migrations.AlterField( - model_name="ldapuser", name="dn", field=models.CharField(max_length=200) - ), - migrations.AlterField( - model_name="ldapusergroup", - name="dn", - field=models.CharField(max_length=200), - ), - ] diff --git a/users/migrations/0039_auto_20161119_0033.py b/users/migrations/0039_auto_20161119_0033.py deleted file mode 100644 index c9eaf3e4..00000000 --- a/users/migrations/0039_auto_20161119_0033.py +++ /dev/null @@ -1,49 +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 = [("users", "0038_auto_20161031_0258")] - - operations = [ - migrations.AlterField( - model_name="ldapserviceuser", - name="dn", - field=models.CharField(serialize=False, max_length=200, primary_key=True), - ), - migrations.AlterField( - model_name="ldapuser", - name="dn", - field=models.CharField(serialize=False, max_length=200, primary_key=True), - ), - migrations.AlterField( - model_name="ldapusergroup", - name="dn", - field=models.CharField(serialize=False, max_length=200, primary_key=True), - ), - ] diff --git a/users/migrations/0040_auto_20161119_1709.py b/users/migrations/0040_auto_20161119_1709.py deleted file mode 100644 index 9fd63098..00000000 --- a/users/migrations/0040_auto_20161119_1709.py +++ /dev/null @@ -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 = [("users", "0039_auto_20161119_0033")] - - operations = [ - migrations.AlterField( - model_name="ldapserviceuser", - name="dn", - field=models.CharField(max_length=200), - ), - migrations.AlterField( - model_name="ldapuser", name="dn", field=models.CharField(max_length=200) - ), - migrations.AlterField( - model_name="ldapusergroup", - name="dn", - field=models.CharField(max_length=200), - ), - ] diff --git a/users/migrations/0041_listright_details.py b/users/migrations/0041_listright_details.py deleted file mode 100644 index 19c6506a..00000000 --- a/users/migrations/0041_listright_details.py +++ /dev/null @@ -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 = [("users", "0040_auto_20161119_1709")] - - operations = [ - migrations.AddField( - model_name="listright", - name="details", - field=models.CharField(help_text="Description", max_length=255, blank=True), - ) - ] diff --git a/users/migrations/0042_auto_20161126_2028.py b/users/migrations/0042_auto_20161126_2028.py deleted file mode 100644 index 3c616ccd..00000000 --- a/users/migrations/0042_auto_20161126_2028.py +++ /dev/null @@ -1,49 +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 = [("users", "0041_listright_details")] - - operations = [ - migrations.AlterField( - model_name="ldapserviceuser", - name="dn", - field=models.CharField(serialize=False, primary_key=True, max_length=200), - ), - migrations.AlterField( - model_name="ldapuser", - name="dn", - field=models.CharField(serialize=False, primary_key=True, max_length=200), - ), - migrations.AlterField( - model_name="ldapusergroup", - name="dn", - field=models.CharField(serialize=False, primary_key=True, max_length=200), - ), - ] diff --git a/users/migrations/0043_auto_20161224_1156.py b/users/migrations/0043_auto_20161224_1156.py deleted file mode 100644 index 0502ea7b..00000000 --- a/users/migrations/0043_auto_20161224_1156.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0042_auto_20161126_2028")] - - operations = [ - migrations.AlterField( - model_name="ldapserviceuser", - name="dn", - field=models.CharField(max_length=200), - ), - migrations.AlterField( - model_name="ldapuser", name="dn", field=models.CharField(max_length=200) - ), - migrations.AlterField( - model_name="ldapusergroup", - name="dn", - field=models.CharField(max_length=200), - ), - ] diff --git a/users/migrations/0043_ban_state.py b/users/migrations/0043_ban_state.py deleted file mode 100644 index 266bdfe5..00000000 --- a/users/migrations/0043_ban_state.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0042_auto_20161126_2028")] - - operations = [ - migrations.AddField( - model_name="ban", - name="state", - field=models.IntegerField( - choices=[(0, "STATE_HARD"), (1, "STATE_SOFT"), (2, "STATE_BRIDAGE")], - default=0, - ), - ) - ] diff --git a/users/migrations/0044_user_ssh_public_key.py b/users/migrations/0044_user_ssh_public_key.py deleted file mode 100644 index 7554ee6f..00000000 --- a/users/migrations/0044_user_ssh_public_key.py +++ /dev/null @@ -1,17 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0043_auto_20161224_1156")] - - operations = [ - migrations.AddField( - model_name="user", - name="ssh_public_key", - field=models.CharField(max_length=2047, null=True, blank=True), - ) - ] diff --git a/users/migrations/0045_merge.py b/users/migrations/0045_merge.py deleted file mode 100644 index 90761425..00000000 --- a/users/migrations/0045_merge.py +++ /dev/null @@ -1,11 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0043_ban_state"), ("users", "0044_user_ssh_public_key")] - - operations = [] diff --git a/users/migrations/0046_auto_20170617_1433.py b/users/migrations/0046_auto_20170617_1433.py deleted file mode 100644 index ddb7eb87..00000000 --- a/users/migrations/0046_auto_20170617_1433.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-17 12:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0045_merge")] - - operations = [ - migrations.RemoveField(model_name="user", name="ssh_public_key"), - migrations.AlterField( - model_name="ban", - name="state", - field=models.IntegerField( - choices=[ - (0, "HARD (aucun accès)"), - (1, "SOFT (accès local seulement)"), - (2, "BRIDAGE (bridage du débit)"), - ], - default=0, - ), - ), - migrations.AlterField( - model_name="ldapserviceuser", - name="dn", - field=models.CharField(max_length=200, primary_key=True, serialize=False), - ), - migrations.AlterField( - model_name="ldapuser", - name="dn", - field=models.CharField(max_length=200, primary_key=True, serialize=False), - ), - migrations.AlterField( - model_name="ldapusergroup", - name="dn", - field=models.CharField(max_length=200, primary_key=True, serialize=False), - ), - ] diff --git a/users/migrations/0047_auto_20170618_0156.py b/users/migrations/0047_auto_20170618_0156.py deleted file mode 100644 index 6175a378..00000000 --- a/users/migrations/0047_auto_20170618_0156.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-17 23:56 -from __future__ import unicode_literals - -from django.db import migrations, models -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0046_auto_20170617_1433")] - - operations = [ - migrations.CreateModel( - name="LdapServiceUserGroup", - fields=[ - ( - "dn", - models.CharField(max_length=200, primary_key=True, serialize=False), - ), - ( - "name", - ldapdb.models.fields.CharField( - db_column="cn", max_length=200, serialize=False - ), - ), - ( - "members", - ldapdb.models.fields.ListField(blank=True, db_column="member"), - ), - ], - options={"abstract": False}, - ), - migrations.AddField( - model_name="serviceuser", - name="access_group", - field=models.IntegerField( - choices=[(0, "auth"), (1, "readonly"), (2, "usermgmt")], default=1 - ), - ), - ] diff --git a/users/migrations/0048_auto_20170618_0210.py b/users/migrations/0048_auto_20170618_0210.py deleted file mode 100644 index 8d7ff90d..00000000 --- a/users/migrations/0048_auto_20170618_0210.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-18 00:10 -from __future__ import unicode_literals - -from django.db import migrations -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0047_auto_20170618_0156")] - - operations = [ - migrations.AlterField( - model_name="ldapserviceusergroup", - name="name", - field=ldapdb.models.fields.CharField( - db_column="cn", max_length=200, primary_key=True, serialize=False - ), - ) - ] diff --git a/users/migrations/0049_auto_20170618_1424.py b/users/migrations/0049_auto_20170618_1424.py deleted file mode 100644 index f73aa4b4..00000000 --- a/users/migrations/0049_auto_20170618_1424.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-18 12:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0048_auto_20170618_0210")] - - operations = [ - migrations.AlterField( - model_name="serviceuser", - name="access_group", - field=models.CharField( - choices=[ - ("auth", "auth"), - ("readonly", "readonly"), - ("usermgmt", "usermgmt"), - ], - default="readonly", - max_length=32, - ), - ) - ] diff --git a/users/migrations/0050_serviceuser_comment.py b/users/migrations/0050_serviceuser_comment.py deleted file mode 100644 index f2503573..00000000 --- a/users/migrations/0050_serviceuser_comment.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-18 16:50 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0049_auto_20170618_1424")] - - operations = [ - migrations.AddField( - model_name="serviceuser", - name="comment", - field=models.CharField(blank=True, help_text="Commentaire", max_length=255), - ) - ] diff --git a/users/migrations/0051_user_telephone.py b/users/migrations/0051_user_telephone.py deleted file mode 100644 index ce5a4764..00000000 --- a/users/migrations/0051_user_telephone.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-25 02:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0050_serviceuser_comment")] - - operations = [ - migrations.AddField( - model_name="user", - name="telephone", - field=models.CharField(blank=True, max_length=15, null=True), - ) - ] diff --git a/users/migrations/0052_ldapuser_shadowexpire.py b/users/migrations/0052_ldapuser_shadowexpire.py deleted file mode 100644 index 2737d76d..00000000 --- a/users/migrations/0052_ldapuser_shadowexpire.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-26 18:51 -from __future__ import unicode_literals - -from django.db import migrations -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0051_user_telephone")] - - operations = [ - migrations.SeparateDatabaseAndState( - state_operations=[ - migrations.AddField( - model_name="ldapuser", - name="shadowexpire", - field=ldapdb.models.fields.CharField( - blank=True, db_column="shadowExpire", max_length=200, null=True - ), - ) - ], - database_operations=[ - migrations.RunSQL( - 'ALTER TABLE users_ldapuser ADD COLUMN "shadowExpire" varchar(200) NULL;' - ) - ], - ) - ] diff --git a/users/migrations/0053_auto_20170626_2105.py b/users/migrations/0053_auto_20170626_2105.py deleted file mode 100644 index 482ba175..00000000 --- a/users/migrations/0053_auto_20170626_2105.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-26 19:05 -from __future__ import unicode_literals - -from django.db import migrations -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0052_ldapuser_shadowexpire")] - - operations = [ - migrations.AlterField( - model_name="ldapuser", - name="shadowexpire", - field=ldapdb.models.fields.IntegerField( - blank=True, db_column="shadowExpire", null=True - ), - ) - ] diff --git a/users/migrations/0054_auto_20170626_2219.py b/users/migrations/0054_auto_20170626_2219.py deleted file mode 100644 index 4b3710a5..00000000 --- a/users/migrations/0054_auto_20170626_2219.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-06-26 20:19 -from __future__ import unicode_literals - -from django.db import migrations -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0053_auto_20170626_2105")] - - operations = [ - migrations.AlterField( - model_name="ldapuser", - name="shadowexpire", - field=ldapdb.models.fields.CharField( - blank=True, db_column="shadowExpire", max_length=200, null=True - ), - ) - ] diff --git a/users/migrations/0055_auto_20171003_0556.py b/users/migrations/0055_auto_20171003_0556.py deleted file mode 100644 index f14f2c68..00000000 --- a/users/migrations/0055_auto_20171003_0556.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-03 03:56 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0054_auto_20170626_2219")] - - operations = [ - migrations.AlterField( - model_name="listright", - name="listright", - field=models.CharField( - max_length=255, - unique=True, - validators=[ - django.core.validators.RegexValidator( - "^[a-z]+$", - message="Les groupes unix ne peuvent contenir que des lettres minuscules", - ) - ], - ), - ) - ] diff --git a/users/migrations/0056_auto_20171015_2033.py b/users/migrations/0056_auto_20171015_2033.py deleted file mode 100644 index d319b302..00000000 --- a/users/migrations/0056_auto_20171015_2033.py +++ /dev/null @@ -1,46 +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 -import users.models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0055_auto_20171003_0556")] - - operations = [ - migrations.AlterField( - model_name="listright", - name="gid", - field=models.PositiveIntegerField(null=True, unique=True), - ), - migrations.AlterField( - model_name="listright", - name="listright", - field=models.CharField( - max_length=255, - unique=True, - validators=[ - django.core.validators.RegexValidator( - "^[a-z]+$", - message="Les groupes unix ne peuvent contenir que des lettres minuscules", - ) - ], - ), - ), - migrations.AlterField( - model_name="user", - name="rezo_rez_uid", - field=models.PositiveIntegerField(blank=True, null=True, unique=True), - ), - migrations.AlterField( - model_name="user", - name="uid_number", - field=models.PositiveIntegerField( - default=users.models.get_fresh_user_uid, unique=True - ), - ), - ] diff --git a/users/migrations/0057_auto_20171023_0301.py b/users/migrations/0057_auto_20171023_0301.py deleted file mode 100644 index f174ff0e..00000000 --- a/users/migrations/0057_auto_20171023_0301.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-23 01:01 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("users", "0056_auto_20171015_2033")] - - operations = [ - migrations.CreateModel( - name="Adherent", - fields=[ - ( - "user_ptr", - models.OneToOneField( - auto_created=True, - on_delete=django.db.models.deletion.CASCADE, - parent_link=True, - primary_key=True, - serialize=False, - to=settings.AUTH_USER_MODEL, - ), - ), - ("usname", models.CharField(max_length=255)), - ], - options={"abstract": False}, - bases=("users.user",), - ), - migrations.CreateModel( - name="Club", - fields=[ - ( - "user_ptr", - models.OneToOneField( - auto_created=True, - on_delete=django.db.models.deletion.CASCADE, - parent_link=True, - primary_key=True, - serialize=False, - to=settings.AUTH_USER_MODEL, - ), - ) - ], - options={"abstract": False}, - bases=("users.user",), - ), - migrations.RunSQL( - "insert into users_adherent (user_ptr_id, usname) select id, name from users_user", - reverse_sql="insert into users_user (name) select usname from users_adherent", - ), - migrations.RemoveField(model_name="user", name="name"), - migrations.RenameField( - model_name="adherent", old_name="usname", new_name="name" - ), - ] diff --git a/users/migrations/0058_auto_20171025_0154.py b/users/migrations/0058_auto_20171025_0154.py deleted file mode 100644 index 9ddd97c0..00000000 --- a/users/migrations/0058_auto_20171025_0154.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-24 23:54 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -def create_move_room(apps, schema_editor): - User = apps.get_model("users", "User") - Adherent = apps.get_model("users", "Adherent") - Club = apps.get_model("users", "Club") - db_alias = schema_editor.connection.alias - users = Adherent.objects.using(db_alias).all() - clubs = Club.objects.using(db_alias).all() - for user in users: - user.room_adherent_id = user.room_id - user.save(using=db_alias) - for user in clubs: - user.room_club_id = user.room_id - user.save(using=db_alias) - - -def delete_move_room(apps, schema_editor): - User = apps.get_model("users", "User") - Adherent = apps.get_model("users", "Adherent") - Club = apps.get_model("users", "Club") - db_alias = schema_editor.connection.alias - users = Adherent.objects.using(db_alias).all() - clubs = Club.objects.using(db_alias).all() - for user in users: - user.room_id = user.room_adherent_id - user.save(using=db_alias) - for user in clubs: - user.room_id = user.room_club_id - user.save(using=db_alias) - - -class Migration(migrations.Migration): - - dependencies = [ - ("topologie", "0031_auto_20171015_2033"), - ("users", "0057_auto_20171023_0301"), - ] - - operations = [ - migrations.AddField( - model_name="adherent", - name="room_adherent", - field=models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="topologie.Room", - ), - ), - migrations.AddField( - model_name="club", - name="room_club", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="topologie.Room", - ), - ), - migrations.RunPython(create_move_room, delete_move_room), - migrations.RemoveField(model_name="user", name="room"), - ] diff --git a/users/migrations/0059_auto_20171025_1854.py b/users/migrations/0059_auto_20171025_1854.py deleted file mode 100644 index ef3dc6be..00000000 --- a/users/migrations/0059_auto_20171025_1854.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-10-25 16:54 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("users", "0058_auto_20171025_0154")] - - operations = [ - migrations.RenameField( - model_name="adherent", old_name="room_adherent", new_name="room" - ), - migrations.RenameField( - model_name="club", old_name="room_club", new_name="room" - ), - ] diff --git a/users/migrations/0060_auto_20171120_0317.py b/users/migrations/0060_auto_20171120_0317.py deleted file mode 100644 index ac001931..00000000 --- a/users/migrations/0060_auto_20171120_0317.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-11-20 02:17 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0059_auto_20171025_1854")] - - operations = [ - migrations.AddField( - model_name="club", - name="administrators", - field=models.ManyToManyField( - blank=True, related_name="club_administrator", to="users.Adherent" - ), - ), - migrations.AddField( - model_name="club", - name="members", - field=models.ManyToManyField( - blank=True, related_name="club_members", to="users.Adherent" - ), - ), - ] diff --git a/users/migrations/0061_auto_20171230_2033.py b/users/migrations/0061_auto_20171230_2033.py deleted file mode 100644 index 198c5718..00000000 --- a/users/migrations/0061_auto_20171230_2033.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-30 19:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("auth", "0008_alter_user_username_max_length"), - ("users", "0060_auto_20171120_0317"), - ] - - operations = [ - migrations.AddField( - model_name="user", - name="groups", - field=models.ManyToManyField( - blank=True, - help_text="The groups this user belongs to. A user will get all permissions granted to each of their groups.", - related_name="user_set", - related_query_name="user", - to="auth.Group", - verbose_name="groups", - ), - ), - migrations.AddField( - model_name="user", - name="is_superuser", - field=models.BooleanField( - default=False, - help_text="Designates that this user has all permissions without explicitly assigning them.", - verbose_name="superuser status", - ), - ), - migrations.AddField( - model_name="user", - name="user_permissions", - field=models.ManyToManyField( - blank=True, - help_text="Specific permissions for this user.", - related_name="user_set", - related_query_name="user", - to="auth.Permission", - verbose_name="user permissions", - ), - ), - ] diff --git a/users/migrations/0062_auto_20171231_0056.py b/users/migrations/0062_auto_20171231_0056.py deleted file mode 100644 index 1815efd3..00000000 --- a/users/migrations/0062_auto_20171231_0056.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-30 23:56 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("auth", "0008_alter_user_username_max_length"), - ("users", "0061_auto_20171230_2033"), - ] - - def create_groups(apps, schema_editor): - group = apps.get_model("auth", "Group") - listrights = apps.get_model("users", "ListRight") - db_alias = schema_editor.connection.alias - for gr in listrights.objects.using(db_alias).all(): - grp = group() - grp.name = gr.unix_name - grp.save() - gr.group_ptr = grp - gr.save() - - def delete_groups(apps, schema_editor): - group = apps.get_model("auth", "Group") - db_alias = schema_editor.connection.alias - group.objects.using(db_alias).all().delete() - - operations = [ - migrations.RenameField( - model_name="listright", old_name="listright", new_name="unix_name" - ), - migrations.AddField( - model_name="listright", - name="group_ptr", - field=models.OneToOneField( - blank=True, - null=True, - auto_created=True, - on_delete=django.db.models.deletion.CASCADE, - serialize=False, - to="auth.Group", - ), - preserve_default=False, - ), - migrations.RunPython(create_groups, delete_groups), - ] diff --git a/users/migrations/0063_auto_20171231_0140.py b/users/migrations/0063_auto_20171231_0140.py deleted file mode 100644 index 66d78a4a..00000000 --- a/users/migrations/0063_auto_20171231_0140.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 00:40 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("users", "0062_auto_20171231_0056")] - - def transfer_right(apps, schema_editor): - rights = apps.get_model("users", "Right") - db_alias = schema_editor.connection.alias - for rg in rights.objects.using(db_alias).all(): - group = rg.right - u = rg.user - u.groups.add(group.group_ptr) - u.save() - - def untransfer_right(apps, schema_editor): - return - - operations = [migrations.RunPython(transfer_right, untransfer_right)] diff --git a/users/migrations/0064_auto_20171231_0150.py b/users/migrations/0064_auto_20171231_0150.py deleted file mode 100644 index daf0ecc0..00000000 --- a/users/migrations/0064_auto_20171231_0150.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 00:50 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("users", "0063_auto_20171231_0140")] - - operations = [ - migrations.AlterUniqueTogether(name="right", unique_together=set([])), - migrations.RemoveField(model_name="right", name="right"), - migrations.RemoveField(model_name="right", name="user"), - migrations.DeleteModel(name="Right"), - migrations.RemoveField(model_name="listright", name="id"), - migrations.AlterField( - model_name="listright", - name="group_ptr", - field=models.OneToOneField( - auto_created=True, - on_delete=django.db.models.deletion.CASCADE, - parent_link=True, - primary_key=True, - serialize=False, - to="auth.Group", - ), - ), - ] diff --git a/users/migrations/0065_auto_20171231_2053.py b/users/migrations/0065_auto_20171231_2053.py deleted file mode 100644 index 4df4dcae..00000000 --- a/users/migrations/0065_auto_20171231_2053.py +++ /dev/null @@ -1,59 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("users", "0064_auto_20171231_0150")] - - operations = [ - migrations.AlterModelOptions( - name="ban", - options={ - "permissions": (("view_ban", "Peut voir un objet ban quelqu'il soit"),) - }, - ), - migrations.AlterModelOptions( - name="listright", - options={ - "permissions": ( - ("view_listright", "Peut voir un objet Group/ListRight"), - ) - }, - ), - migrations.AlterModelOptions( - name="school", - options={"permissions": (("view_school", "Peut voir un objet school"),)}, - ), - migrations.AlterModelOptions( - name="serviceuser", - options={ - "permissions": (("view_serviceuser", "Peut voir un objet serviceuser"),) - }, - ), - migrations.AlterModelOptions( - name="user", - options={ - "permissions": ( - ("change_user_password", "Peut changer le mot de passe d'un user"), - ("change_user_state", "Peut éditer l'etat d'un user"), - ("change_user_force", "Peut forcer un déménagement"), - ("change_user_shell", "Peut éditer le shell d'un user"), - ( - "change_user_groups", - "Peut éditer les groupes d'un user ! Permission critique", - ), - ("view_user", "Peut voir un objet user quelquonque"), - ) - }, - ), - migrations.AlterModelOptions( - name="whitelist", - options={ - "permissions": (("view_whitelist", "Peut voir un objet whitelist"),) - }, - ), - ] diff --git a/users/migrations/0066_grouppermissions.py b/users/migrations/0066_grouppermissions.py deleted file mode 100644 index c0e86b16..00000000 --- a/users/migrations/0066_grouppermissions.py +++ /dev/null @@ -1,383 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("users", "0065_auto_20171231_2053"), - ("cotisations", "0028_auto_20171231_0007"), - ("machines", "0071_auto_20171231_2100"), - ("preferences", "0025_auto_20171231_2142"), - ("topologie", "0033_auto_20171231_1743"), - ] - - def transfer_permissions(apps, schema_editor): - permission_groups = { - "bofh": [ - "add_ban", - "change_ban", - "delete_ban", - "view_ban", - "add_club", - "change_club", - "delete_club", - "add_user", - "change_user", - "change_user_force", - "change_user_password", - "change_user_shell", - "view_user", - "add_whitelist", - "change_whitelist", - "delete_whitelist", - "view_whitelist", - ], - "bureau": [ - "add_logentry", - "change_logentry", - "delete_logentry", - "add_group", - "change_group", - "delete_group", - "add_permission", - "change_permission", - "delete_permission", - "add_adherent", - "change_adherent", - "delete_adherent", - "add_ban", - "change_ban", - "delete_ban", - "view_ban", - "add_club", - "change_club", - "delete_club", - "add_listright", - "change_listright", - "delete_listright", - "view_listright", - "add_school", - "change_school", - "delete_school", - "view_school", - "add_user", - "change_user", - "change_user_force", - "change_user_groups", - "change_user_password", - "change_user_shell", - "change_user_state", - "delete_user", - "view_user", - "add_whitelist", - "change_whitelist", - "delete_whitelist", - "view_whitelist", - ], - "cableur": [ - "add_logentry", - "view_article", - "add_banque", - "change_banque", - "delete_banque", - "view_banque", - "add_cotisation", - "change_cotisation", - "delete_cotisation", - "view_cotisation", - "add_facture", - "can_create", - "can_delete", - "can_edit", - "can_view", - "can_view_all", - "change_facture", - "delete_facture", - "view_facture", - "view_paiement", - "add_vente", - "change_vente", - "delete_vente", - "view_vente", - "add_domain", - "change_domain", - "delete_domain", - "view_domain", - "use_all_extension", - "view_extension", - "add_interface", - "change_interface", - "delete_interface", - "view_interface", - "view_iplist", - "view_iptype", - "add_machine", - "change_machine", - "view_machine", - "view_machinetype", - "view_mx", - "view_nas", - "view_ns", - "view_ouvertureportlist", - "view_service", - "view_soa", - "view_soa", - "view_txt", - "view_vlan", - "view_assooption", - "view_generaloption", - "view_mailmessageoption", - "view_optionalmachine", - "view_optionaltopologie", - "view_optionaluser", - "view_service", - "view_constructorswitch", - "view_modelswitch", - "view_port", - "view_room", - "view_stack", - "view_switch", - "add_adherent", - "change_adherent", - "view_ban", - "add_club", - "change_club", - "view_listright", - "add_school", - "change_school", - "delete_school", - "view_school", - "view_serviceuser", - "add_user", - "change_user", - "change_user_force", - "change_user_password", - "view_user", - "add_whitelist", - "change_whitelist", - "delete_whitelist", - "view_whitelist", - ], - "tresorier": [ - "add_article", - "change_article", - "delete_article", - "view_article", - "add_banque", - "change_banque", - "delete_banque", - "view_banque", - "add_cotisation", - "change_all_cotisation", - "change_cotisation", - "delete_cotisation", - "view_cotisation", - "add_facture", - "can_change_control", - "can_change_pdf", - "can_create", - "can_delete", - "can_edit", - "can_view", - "can_view_all", - "change_all_facture", - "change_facture", - "change_facture_control", - "change_facture_pdf", - "delete_facture", - "view_facture", - "add_paiement", - "change_paiement", - "delete_paiement", - "view_paiement", - "add_vente", - "change_all_vente", - "change_vente", - "delete_vente", - "view_vente", - ], - "admin": [ - "add_logentry", - "change_logentry", - "delete_logentry", - "add_assooption", - "change_assooption", - "delete_assooption", - "view_assooption", - "add_generaloption", - "change_generaloption", - "delete_generaloption", - "view_generaloption", - "add_mailmessageoption", - "change_mailmessageoption", - "delete_mailmessageoption", - "view_mailmessageoption", - "add_optionalmachine", - "change_optionalmachine", - "delete_optionalmachine", - "view_optionalmachine", - "add_optionaltopologie", - "change_optionaltopologie", - "delete_optionaltopologie", - "view_optionaltopologie", - "add_optionaluser", - "change_optionaluser", - "delete_optionaluser", - "view_optionaluser", - "add_service", - "add_services", - "change_service", - "change_services", - "delete_service", - "delete_services", - "view_service", - ], - "infra": [ - "add_domain", - "change_domain", - "delete_domain", - "view_domain", - "add_extension", - "change_extension", - "delete_extension", - "use_all_extension", - "view_extension", - "add_interface", - "change_interface", - "delete_interface", - "view_interface", - "add_iplist", - "change_iplist", - "delete_iplist", - "view_iplist", - "add_iptype", - "change_iptype", - "delete_iptype", - "use_all_iptype", - "view_iptype", - "add_machine", - "change_machine", - "change_machine_user", - "delete_machine", - "view_machine", - "add_machinetype", - "change_machinetype", - "delete_machinetype", - "use_all_machinetype", - "view_machinetype", - "add_mx", - "change_mx", - "delete_mx", - "view_mx", - "add_nas", - "change_nas", - "delete_nas", - "view_nas", - "add_ns", - "change_ns", - "delete_ns", - "view_ns", - "add_ouvertureport", - "change_ouvertureport", - "delete_ouvertureport", - "add_ouvertureportlist", - "change_ouvertureportlist", - "delete_ouvertureportlist", - "view_ouvertureportlist", - "add_service", - "change_service", - "delete_service", - "view_service", - "add_service_link", - "change_service_link", - "delete_service_link", - "add_soa", - "change_soa", - "delete_soa", - "view_soa", - "add_srv", - "change_srv", - "delete_srv", - "view_soa", - "add_text", - "add_txt", - "change_text", - "change_txt", - "delete_text", - "delete_txt", - "view_txt", - "add_vlan", - "change_vlan", - "delete_vlan", - "view_vlan", - "add_constructorswitch", - "change_constructorswitch", - "delete_constructorswitch", - "view_constructorswitch", - "add_modelswitch", - "change_modelswitch", - "delete_modelswitch", - "view_modelswitch", - "add_port", - "change_port", - "delete_port", - "view_port", - "add_room", - "change_room", - "delete_room", - "view_room", - "add_stack", - "change_stack", - "delete_stack", - "view_stack", - "add_switch", - "change_switch", - "delete_switch", - "view_switch", - "add_listshell", - "change_listshell", - "delete_listshell", - "add_serviceuser", - "change_serviceuser", - "delete_serviceuser", - "view_serviceuser", - "change_user", - "view_user", - ], - } - - rights = apps.get_model("users", "ListRight") - permissions = apps.get_model("auth", "Permission") - groups = apps.get_model("auth", "Group") - db_alias = schema_editor.connection.alias - for group in permission_groups: - lr_object = rights.objects.using(db_alias).filter(unix_name=group).first() - if not lr_object: - last = rights.objects.using(db_alias).all().order_by("gid").last() - if last: - gid = last.gid + 1 - else: - gid = 501 - group_object = groups.objects.using(db_alias).create(name=group) - lr_object = rights.objects.using(db_alias).create( - unix_name=group, gid=gid, group_ptr=group_object - ) - lr_object = lr_object.group_ptr - for permission in permission_groups[group]: - perm = ( - permissions.objects.using(db_alias) - .filter(codename=permission) - .first() - ) - if perm: - lr_object.permissions.add(perm) - lr_object.save() - - def untransfer_permissions(apps, schema_editor): - return - - operations = [migrations.RunPython(transfer_permissions, untransfer_permissions)] diff --git a/users/migrations/0067_serveurpermission.py b/users/migrations/0067_serveurpermission.py deleted file mode 100644 index d1c73347..00000000 --- a/users/migrations/0067_serveurpermission.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2017-12-31 19:53 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("users", "0066_grouppermissions")] - - def transfer_permissions(apps, schema_editor): - db_alias = schema_editor.connection.alias - contenttype = apps.get_model("contenttypes", "ContentType") - rights = apps.get_model("users", "ListRight") - permissions = apps.get_model("auth", "Permission") - groups = apps.get_model("auth", "Group") - machine = apps.get_model("machines", "Machine") - perm = permissions.objects.using(db_alias).filter(codename="serveur").first() - if not perm: - perm = permissions.objects.using(db_alias).create( - codename="serveur", - name="Serveur", - content_type=contenttype.objects.get_for_model(machine), - ) - group_object = ( - rights.objects.using(db_alias).filter(unix_name="serveur").first() - ) - if not group_object: - last_gid = rights.objects.using(db_alias).all().order_by("gid").last().gid - gid = last_gid + 1 - abstract_group = groups.objects.using(db_alias).create(name="serveur") - group_object = rights.objects.using(db_alias).create( - group_ptr=abstract_group, unix_name="serveur", gid=gid - ) - group_object = group_object.group_ptr - group_object.permissions.add(perm) - group_object.save() - - def untransfer_permissions(apps, schema_editor): - return - - operations = [migrations.RunPython(transfer_permissions, untransfer_permissions)] diff --git a/users/migrations/0068_auto_20180107_2245.py b/users/migrations/0068_auto_20180107_2245.py deleted file mode 100644 index a1dcee4f..00000000 --- a/users/migrations/0068_auto_20180107_2245.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-01-07 21:45 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0067_serveurpermission")] - - def transfer_permissions(apps, schema_editor): - critical_rights = [ - "adm", - "admin", - "bureau", - "infra", - "tresorier", - "serveur", - "bofh", - ] - db_alias = schema_editor.connection.alias - rights = apps.get_model("users", "ListRight") - for right in critical_rights: - rg = rights.objects.using(db_alias).filter(unix_name=right).first() - if rg: - rg.critical = True - rg.save() - - def untransfer_permissions(apps, schema_editor): - return - - operations = [ - migrations.AlterModelOptions( - name="user", - options={ - "permissions": ( - ("change_user_password", "Peut changer le mot de passe d'un user"), - ("change_user_state", "Peut éditer l'etat d'un user"), - ("change_user_force", "Peut forcer un déménagement"), - ("change_user_shell", "Peut éditer le shell d'un user"), - ( - "change_user_groups", - "Peut éditer les groupes d'un user ! Permission critique", - ), - ( - "change_all_users", - "Peut éditer tous les users, y compris ceux dotés de droits. Superdroit", - ), - ("view_user", "Peut voir un objet user quelquonque"), - ) - }, - ), - migrations.AddField( - model_name="listright", - name="critical", - field=models.BooleanField(default=False), - ), - migrations.RunPython(transfer_permissions, untransfer_permissions), - ] diff --git a/users/migrations/0069_club_mailing.py b/users/migrations/0069_club_mailing.py deleted file mode 100644 index 4d72df8d..00000000 --- a/users/migrations/0069_club_mailing.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-07 15:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0068_auto_20180107_2245")] - - operations = [ - migrations.AddField( - model_name="club", name="mailing", field=models.BooleanField(default=False) - ) - ] diff --git a/users/migrations/0070_auto_20180324_1906.py b/users/migrations/0070_auto_20180324_1906.py deleted file mode 100644 index dc44344e..00000000 --- a/users/migrations/0070_auto_20180324_1906.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-03-24 18:06 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("users", "0069_club_mailing")] - - operations = [ - migrations.AlterModelOptions( - name="listshell", - options={ - "permissions": ( - ("view_listshell", "Peut voir un objet shell quelqu'il soit"), - ) - }, - ) - ] diff --git a/users/migrations/0071_auto_20180415_1252.py b/users/migrations/0071_auto_20180415_1252.py deleted file mode 100644 index ddaf1a65..00000000 --- a/users/migrations/0071_auto_20180415_1252.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-15 10:52 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0070_auto_20180324_1906")] - - operations = [ - migrations.AlterField( - model_name="listright", - name="unix_name", - field=models.CharField( - max_length=255, - unique=True, - validators=[ - django.core.validators.RegexValidator( - "^[a-z]+$", - message="Les groupes unix ne peuvent contenir que des lettres minuscules", - ) - ], - ), - ) - ] diff --git a/users/migrations/0072_auto_20180426_2021.py b/users/migrations/0072_auto_20180426_2021.py deleted file mode 100644 index be4c8aab..00000000 --- a/users/migrations/0072_auto_20180426_2021.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-04-26 18:21 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0071_auto_20180415_1252")] - - operations = [ - migrations.AlterField( - model_name="ban", name="date_end", field=models.DateTimeField() - ), - migrations.AlterField( - model_name="whitelist", name="date_end", field=models.DateTimeField() - ), - ] diff --git a/users/migrations/0073_auto_20180629_1614.py b/users/migrations/0073_auto_20180629_1614.py deleted file mode 100644 index ebcc1bd0..00000000 --- a/users/migrations/0073_auto_20180629_1614.py +++ /dev/null @@ -1,85 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-06-29 14:14 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import re2o.mixins - - -class Migration(migrations.Migration): - def create_initial_email_address(apps, schema_editor): - db_alias = schema_editor.connection.alias - User = apps.get_model("users", "User") - EMailAddress = apps.get_model("users", "EMailAddress") - users = User.objects.using(db_alias).all() - for user in users: - EMailAddress.objects.using(db_alias).create( - local_part=user.pseudo, user=user - ) - - def delete_all_email_address(apps, schema_editor): - db_alias = schema_editor.connection.alias - EMailAddress = apps.get_model("users", "EMailAddress") - EMailAddress.objects.using(db_alias).delete() - - dependencies = [("users", "0072_auto_20180426_2021")] - - operations = [ - migrations.CreateModel( - name="EMailAddress", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "local_part", - models.CharField( - help_text="Local part of the email address", - max_length=128, - unique=True, - ), - ), - ( - "user", - models.ForeignKey( - help_text="User of the local email", - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model), - options={ - "permissions": ( - ("view_emailaddress", "Can see a local email account object"), - ), - "verbose_name": "Local email account", - "verbose_name_plural": "Local email accounts", - }, - ), - migrations.AddField( - model_name="user", - name="local_email_enabled", - field=models.BooleanField( - default=False, - help_text="Wether or not to enable the local email account.", - ), - ), - migrations.AddField( - model_name="user", - name="local_email_redirect", - field=models.BooleanField( - default=False, - help_text="Whether or not to redirect the local email messages to the main email.", - ), - ), - migrations.RunPython(create_initial_email_address, delete_all_email_address), - ] diff --git a/users/migrations/0074_auto_20180810_2104.py b/users/migrations/0074_auto_20180810_2104.py deleted file mode 100644 index 35fdc0cd..00000000 --- a/users/migrations/0074_auto_20180810_2104.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-10 19:04 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models -import users.models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0073_auto_20180629_1614")] - - operations = [ - migrations.AddField( - model_name="adherent", - name="gpg_fingerprint", - field=models.CharField( - blank=True, - max_length=40, - null=True, - validators=[ - django.core.validators.RegexValidator( - "^[0-9A-F]{40}$", - message="Une fingerprint GPG doit contenir 40 caractères hexadécimaux", - ) - ], - ), - ) - ] diff --git a/users/migrations/0074_auto_20180814_1059.py b/users/migrations/0074_auto_20180814_1059.py deleted file mode 100644 index 4bac3095..00000000 --- a/users/migrations/0074_auto_20180814_1059.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-14 08:59 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0073_auto_20180629_1614")] - - operations = [ - migrations.AlterField( - model_name="user", - name="email", - field=models.EmailField( - blank=True, - null=True, - help_text="External email address allowing us to contact you.", - max_length=254, - ), - ), - migrations.AlterField( - model_name="user", - name="local_email_enabled", - field=models.BooleanField( - default=False, help_text="Enable the local email account." - ), - ), - migrations.AlterField( - model_name="user", - name="local_email_redirect", - field=models.BooleanField( - default=False, - help_text="Enable redirection of the local email messages to the main email.", - ), - ), - ] diff --git a/users/migrations/0075_merge_20180815_2202.py b/users/migrations/0075_merge_20180815_2202.py deleted file mode 100644 index 6d22d0c9..00000000 --- a/users/migrations/0075_merge_20180815_2202.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-15 20:02 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("users", "0074_auto_20180814_1059"), - ("users", "0074_auto_20180810_2104"), - ] - - operations = [] diff --git a/users/migrations/0076_auto_20180818_1321.py b/users/migrations/0076_auto_20180818_1321.py deleted file mode 100644 index f310f715..00000000 --- a/users/migrations/0076_auto_20180818_1321.py +++ /dev/null @@ -1,206 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-18 11:21 -from __future__ import unicode_literals - -from django.conf import settings -import django.core.validators -from django.db import migrations, models -import django.db.models.deletion -import users.models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0075_merge_20180815_2202")] - - operations = [ - migrations.AlterModelOptions( - name="adherent", - options={"verbose_name": "member", "verbose_name_plural": "members"}, - ), - migrations.AlterModelOptions( - name="ban", - options={ - "permissions": (("view_ban", "Can view a ban object"),), - "verbose_name": "ban", - "verbose_name_plural": "bans", - }, - ), - migrations.AlterModelOptions( - name="club", - options={"verbose_name": "club", "verbose_name_plural": "clubs"}, - ), - migrations.AlterModelOptions( - name="emailaddress", - options={ - "permissions": ( - ("view_emailaddress", "Can view a local email account object"), - ), - "verbose_name": "local email account", - "verbose_name_plural": "local email accounts", - }, - ), - migrations.AlterModelOptions( - name="listright", - options={ - "permissions": ( - ("view_listright", "Can view a group of rights object"), - ), - "verbose_name": "group of rights", - "verbose_name_plural": "groups of rights", - }, - ), - migrations.AlterModelOptions( - name="listshell", - options={ - "permissions": (("view_listshell", "Can view a shell object"),), - "verbose_name": "shell", - "verbose_name_plural": "shells", - }, - ), - migrations.AlterModelOptions( - name="school", - options={ - "permissions": (("view_school", "Can view a school object"),), - "verbose_name": "school", - "verbose_name_plural": "schools", - }, - ), - migrations.AlterModelOptions( - name="serviceuser", - options={ - "permissions": ( - ("view_serviceuser", "Can view a service user object"), - ), - "verbose_name": "service user", - "verbose_name_plural": "service users", - }, - ), - migrations.AlterModelOptions( - name="user", - options={ - "permissions": ( - ("change_user_password", "Can change the password of a user"), - ("change_user_state", "Can edit the state of a user"), - ("change_user_force", "Can force the move"), - ("change_user_shell", "Can edit the shell of a user"), - ( - "change_user_groups", - "Can edit the groups of rights of a user (critical permission)", - ), - ( - "change_all_users", - "Can edit all users, including those with rights.", - ), - ("view_user", "Can view a user object"), - ), - "verbose_name": "user (member or club)", - "verbose_name_plural": "users (members or clubs)", - }, - ), - migrations.AlterModelOptions( - name="whitelist", - options={ - "permissions": (("view_whitelist", "Can view a whitelist object"),), - "verbose_name": "whitelist (free of charge access)", - "verbose_name_plural": "whitelists (free of charge access)", - }, - ), - migrations.AlterField( - model_name="adherent", - name="gpg_fingerprint", - field=models.CharField( - blank=True, - max_length=40, - null=True, - validators=[ - django.core.validators.RegexValidator( - "^[0-9A-F]{40}$", - message="A GPG fingerprint must contain 40 hexadecimal characters.", - ) - ], - ), - ), - migrations.AlterField( - model_name="ban", - name="state", - field=models.IntegerField( - choices=[ - (0, "HARD (no access)"), - (1, "SOFT (local access only)"), - (2, "RESTRICTED (speed limitation)"), - ], - default=0, - ), - ), - migrations.AlterField( - model_name="emailaddress", - name="user", - field=models.ForeignKey( - help_text="User of the local email account", - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - migrations.AlterField( - model_name="listright", - name="unix_name", - field=models.CharField( - max_length=255, - unique=True, - validators=[ - django.core.validators.RegexValidator( - "^[a-z]+$", - message="UNIX groups can only contain lower case letters.", - ) - ], - ), - ), - migrations.AlterField( - model_name="request", - name="type", - field=models.CharField( - choices=[("PW", "Password"), ("EM", "Email address")], max_length=2 - ), - ), - migrations.AlterField( - model_name="serviceuser", - name="comment", - field=models.CharField(blank=True, help_text="Comment", max_length=255), - ), - migrations.AlterField( - model_name="serviceuser", - name="pseudo", - field=models.CharField( - help_text="Must only contain letters, numerals or dashes.", - max_length=32, - unique=True, - validators=[users.models.linux_user_validator], - ), - ), - migrations.AlterField( - model_name="user", - name="comment", - field=models.CharField( - blank=True, help_text="Comment, school year", max_length=255 - ), - ), - migrations.AlterField( - model_name="user", - name="local_email_redirect", - field=models.BooleanField( - default=False, - help_text="Enable redirection of the local email messages to the main email address.", - ), - ), - migrations.AlterField( - model_name="user", - name="pseudo", - field=models.CharField( - help_text="Must only contain letters, numerals or dashes.", - max_length=32, - unique=True, - validators=[users.models.linux_user_validator], - ), - ), - ] diff --git a/users/migrations/0077_auto_20180824_1750.py b/users/migrations/0077_auto_20180824_1750.py deleted file mode 100644 index 194bc247..00000000 --- a/users/migrations/0077_auto_20180824_1750.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-08-24 15:50 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0076_auto_20180818_1321")] - - operations = [ - migrations.AlterField( - model_name="user", - name="state", - field=models.IntegerField( - choices=[ - (0, "STATE_ACTIVE"), - (1, "STATE_DISABLED"), - (2, "STATE_ARCHIVE"), - (3, "STATE_NOT_YET_ACTIVE"), - ], - default=3, - ), - ) - ] diff --git a/users/migrations/0078_auto_20181011_1405.py b/users/migrations/0078_auto_20181011_1405.py deleted file mode 100644 index cde58630..00000000 --- a/users/migrations/0078_auto_20181011_1405.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-10-11 12:05 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("users", "0077_auto_20180824_1750")] - - operations = [ - migrations.AlterField( - model_name="request", - name="user", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL - ), - ) - ] diff --git a/users/migrations/0079_auto_20181228_2039.py b/users/migrations/0079_auto_20181228_2039.py deleted file mode 100644 index c8335b6e..00000000 --- a/users/migrations/0079_auto_20181228_2039.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2018-12-28 19:39 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0078_auto_20181011_1405")] - - operations = [ - migrations.AlterField( - model_name="adherent", - name="gpg_fingerprint", - field=models.CharField(blank=True, max_length=49, null=True), - ) - ] diff --git a/users/migrations/0080_auto_20190108_1726.py b/users/migrations/0080_auto_20190108_1726.py deleted file mode 100644 index f7831be8..00000000 --- a/users/migrations/0080_auto_20190108_1726.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-01-08 23:26 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0079_auto_20181228_2039")] - - operations = [ - migrations.AlterField( - model_name="user", - name="state", - field=models.IntegerField( - choices=[ - (0, "Active"), - (1, "Disabled"), - (2, "Archived"), - (3, "Not yet active"), - ], - default=3, - ), - ) - ] diff --git a/users/migrations/0081_auto_20190317_0302.py b/users/migrations/0081_auto_20190317_0302.py deleted file mode 100644 index 2e511bb8..00000000 --- a/users/migrations/0081_auto_20190317_0302.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.7 on 2019-03-17 02:02 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0080_auto_20190108_1726")] - - operations = [ - migrations.AlterField( - model_name="user", - name="state", - field=models.IntegerField( - choices=[ - (0, "Active"), - (1, "Disabled"), - (2, "Archived"), - (3, "Not yet active"), - (4, "Full Archived"), - ], - default=3, - ), - ) - ] diff --git a/users/migrations/0082_auto_20190908_1338.py b/users/migrations/0082_auto_20190908_1338.py deleted file mode 100644 index ecaf8c77..00000000 --- a/users/migrations/0082_auto_20190908_1338.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-09-08 11:38 -from __future__ import unicode_literals - -from django.db import migrations -import ldapdb.models.fields - - -class Migration(migrations.Migration): - - dependencies = [("users", "0081_auto_20190317_0302")] - - operations = [ - migrations.SeparateDatabaseAndState( - state_operations=[ - migrations.AlterField( - model_name="ldapserviceuser", - name="dn", - field=ldapdb.models.fields.CharField( - max_length=200, primary_key=True, serialize=False - ), - ), - migrations.AlterField( - model_name="ldapserviceusergroup", - name="dn", - field=ldapdb.models.fields.CharField( - max_length=200, primary_key=True, serialize=False - ), - ), - migrations.AlterField( - model_name="ldapuser", - name="dn", - field=ldapdb.models.fields.CharField( - max_length=200, primary_key=True, serialize=False - ), - ), - migrations.AlterField( - model_name="ldapusergroup", - name="dn", - field=ldapdb.models.fields.CharField( - max_length=200, primary_key=True, serialize=False - ), - ), - ] - ) - ] diff --git a/users/migrations/0083_user_shortcuts_enabled.py b/users/migrations/0083_user_shortcuts_enabled.py deleted file mode 100644 index cb225f59..00000000 --- a/users/migrations/0083_user_shortcuts_enabled.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-09-20 12:38 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("users", "0082_auto_20190908_1338")] - - operations = [ - migrations.AddField( - model_name="user", - name="shortcuts_enabled", - field=models.BooleanField( - default=True, verbose_name="Enable shortcuts on Re2o website" - ), - ) - ] diff --git a/users/migrations/0084_auto_20191120_0159.py b/users/migrations/0084_auto_20191120_0159.py deleted file mode 100644 index f4acc90d..00000000 --- a/users/migrations/0084_auto_20191120_0159.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.23 on 2019-11-20 00:59 -from __future__ import unicode_literals - -from django.conf import settings -import django.core.validators -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0083_user_shortcuts_enabled'), - ] - - operations = [ - migrations.AlterModelOptions( - name='user', - options={'permissions': (('change_user_password', 'Can change the password of a user'), ('change_user_state', 'Can edit the state of a user'), ('change_user_force', 'Can force the move'), ('change_user_shell', 'Can edit the shell of a user'), ('change_user_groups', 'Can edit the groups of rights of a user (critical permission)'), ('change_all_users', 'Can edit all users, including those with rights'), ('view_user', 'Can view a user object')), 'verbose_name': 'user (member or club)', 'verbose_name_plural': 'users (members or clubs)'}, - ), - migrations.AlterField( - model_name='emailaddress', - name='local_part', - field=models.CharField(help_text='Local part of the email address.', max_length=128, unique=True), - ), - migrations.AlterField( - model_name='emailaddress', - name='user', - field=models.ForeignKey(help_text='User of the local email account.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - migrations.AlterField( - model_name='listright', - name='details', - field=models.CharField(blank=True, help_text='Description.', max_length=255), - ), - migrations.AlterField( - model_name='listright', - name='unix_name', - field=models.CharField(max_length=255, unique=True, validators=[django.core.validators.RegexValidator('^[a-z]+$', message='UNIX group names can only contain lower case letters.')]), - ), - migrations.AlterField( - model_name='serviceuser', - name='comment', - field=models.CharField(blank=True, help_text='Comment.', max_length=255), - ), - migrations.AlterField( - model_name='user', - name='comment', - field=models.CharField(blank=True, help_text='Comment, school year.', max_length=255), - ), - migrations.AlterField( - model_name='user', - name='shortcuts_enabled', - field=models.BooleanField(default=True, verbose_name='enable shortcuts on Re2o website'), - ), - migrations.AlterField( - model_name='user', - name='state', - field=models.IntegerField(choices=[(0, 'Active'), (1, 'Disabled'), (2, 'Archived'), (3, 'Not yet active'), (4, 'Fully archived')], default=3), - ), - ] diff --git a/users/migrations/0085_user_email_state.py b/users/migrations/0085_user_email_state.py deleted file mode 100644 index 92535565..00000000 --- a/users/migrations/0085_user_email_state.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-16 22:31 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0084_auto_20191120_0159'), - ] - - def flag_verified(apps, schema_editor): - db_alias = schema_editor.connection.alias - users = apps.get_model("users", "User") - users.objects.using(db_alias).all().update(email_state=0) - - def undo_flag_verified(apps, schema_editor): - return - - operations = [ - migrations.AddField( - model_name='user', - name='email_state', - field=models.IntegerField(choices=[(0, 'Verified'), (1, 'Unverified'), (2, 'Waiting for email confirmation')], default=2), - ), - migrations.RunPython(flag_verified, undo_flag_verified), - ] diff --git a/users/migrations/0086_user_email_change_date.py b/users/migrations/0086_user_email_change_date.py deleted file mode 100644 index e8d9ea9d..00000000 --- a/users/migrations/0086_user_email_change_date.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-17 00:00 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0085_user_email_state'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='email_change_date', - field=models.DateTimeField(default=None, null=True), - ), - ] diff --git a/users/migrations/0087_request_email.py b/users/migrations/0087_request_email.py deleted file mode 100644 index 3cb8d792..00000000 --- a/users/migrations/0087_request_email.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-17 20:10 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0086_user_email_change_date'), - ] - - operations = [ - migrations.AddField( - model_name='request', - name='email', - field=models.EmailField(blank=True, max_length=254, null=True), - ), - ] diff --git a/users/migrations/0088_auto_20200417_2312.py b/users/migrations/0088_auto_20200417_2312.py deleted file mode 100644 index e9f82f7c..00000000 --- a/users/migrations/0088_auto_20200417_2312.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-17 21:12 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models -from django.utils.timezone import utc - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0087_request_email'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='email_change_date', - field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(2020, 4, 17, 21, 12, 19, 739799, tzinfo=utc)), - preserve_default=False, - ), - ] diff --git a/users/migrations/0089_auto_20200418_0112.py b/users/migrations/0089_auto_20200418_0112.py deleted file mode 100644 index f3711f0f..00000000 --- a/users/migrations/0089_auto_20200418_0112.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-17 23:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0088_auto_20200417_2312'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='email_state', - field=models.IntegerField(choices=[(0, 'Confirmed'), (1, 'Not confirmed'), (2, 'Waiting for email confirmation')], default=2), - ), - ] diff --git a/users/migrations/0090_auto_20200421_1825.py b/users/migrations/0090_auto_20200421_1825.py deleted file mode 100644 index 3a659d46..00000000 --- a/users/migrations/0090_auto_20200421_1825.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-21 16:25 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0089_auto_20200418_0112'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='email', - field=models.EmailField(blank=True, default='', help_text='External email address allowing us to contact you.', max_length=254), - ), - ] diff --git a/users/migrations/0091_auto_20200423_1256.py b/users/migrations/0091_auto_20200423_1256.py deleted file mode 100644 index b2ffca92..00000000 --- a/users/migrations/0091_auto_20200423_1256.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-23 10:56 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0090_auto_20200421_1825'), - ] - - operations = [ - migrations.AlterModelOptions( - name='user', - options={'permissions': (('change_user_password', 'Can change the password of a user'), ('change_user_state', 'Can edit the state of a user'), ('change_user_force', 'Can force the move'), ('change_user_shell', 'Can edit the shell of a user'), ('change_user_pseudo', 'Can edit the pseudo of a user'), ('change_user_groups', 'Can edit the groups of rights of a user (critical permission)'), ('change_all_users', 'Can edit all users, including those with rights'), ('view_user', 'Can view a user object')), 'verbose_name': 'user (member or club)', 'verbose_name_plural': 'users (members or clubs)'}, - ), - ] diff --git a/users/migrations/0092_auto_20200502_0057.py b/users/migrations/0092_auto_20200502_0057.py deleted file mode 100644 index c4b297e0..00000000 --- a/users/migrations/0092_auto_20200502_0057.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-05-01 22:57 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0091_auto_20200423_1256'), - ] - - operations = [ - migrations.RenameField("user", "rezo_rez_uid", "legacy_uid"), - migrations.AlterField( - model_name='user', - name='legacy_uid', - field=models.PositiveIntegerField(blank=True, help_text='Optionnal legacy uid, for import and transition purpose', null=True, unique=True), - ), - migrations.AlterField( - model_name='user', - name='school', - field=models.ForeignKey(blank=True, help_text='Education institute.', null=True, on_delete=django.db.models.deletion.PROTECT, to='users.School'), - ), - migrations.AlterField( - model_name='user', - name='shell', - field=models.ForeignKey(blank=True, help_text='Unix shell.', null=True, on_delete=django.db.models.deletion.PROTECT, to='users.ListShell'), - ), - migrations.AlterField( - model_name='user', - name='state', - field=models.IntegerField(choices=[(0, 'Active'), (1, 'Disabled'), (2, 'Archived'), (3, 'Not yet active'), (4, 'Fully archived')], default=3, help_text='Account state.'), - ), - ] diff --git a/users/migrations/0093_user_profile_image.py b/users/migrations/0093_user_profile_image.py deleted file mode 100644 index 9664c057..00000000 --- a/users/migrations/0093_user_profile_image.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-05-18 14:48 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0092_auto_20200502_0057'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='profile_image', - field=models.ImageField(blank=True, upload_to='profile_image'), - ), - ] diff --git a/users/migrations/0094_remove_user_profile_image.py b/users/migrations/0094_remove_user_profile_image.py deleted file mode 100644 index 18519eee..00000000 --- a/users/migrations/0094_remove_user_profile_image.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-10-22 13:33 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0093_user_profile_image'), - ] - - operations = [ - migrations.RemoveField( - model_name='user', - name='profile_image', - ), - ] diff --git a/users/migrations/0095_user_theme.py b/users/migrations/0095_user_theme.py deleted file mode 100644 index 162903ef..00000000 --- a/users/migrations/0095_user_theme.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-16 18:52 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0094_remove_user_profile_image'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='theme', - field=models.CharField(default='default.css', max_length=255), - ), - ] diff --git a/users/migrations/0096_auto_20210110_1811.py b/users/migrations/0096_auto_20210110_1811.py deleted file mode 100644 index 6a6fd720..00000000 --- a/users/migrations/0096_auto_20210110_1811.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2021-01-10 17:11 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0095_user_theme'), - ] - - operations = [ - migrations.DeleteModel( - name='LdapServiceUser', - ), - migrations.DeleteModel( - name='LdapServiceUserGroup', - ), - migrations.DeleteModel( - name='LdapUser', - ), - migrations.DeleteModel( - name='LdapUserGroup', - ), - ]