From 892bf51163ce8a0e65612867dc454229a5cbc0be Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 19 May 2023 14:57:48 +0200 Subject: [PATCH] Run black on all files --- bda/admin.py | 1 - bda/algorithm.py | 1 - bda/management/commands/loadbdadevdata.py | 2 +- bda/migrations/0001_initial.py | 1 - bda/migrations/0002_add_tirage.py | 1 - bda/migrations/0003_update_tirage_and_spectacle.py | 1 - bda/migrations/0004_mails-rappel.py | 1 - bda/migrations/0005_encoding.py | 1 - bda/migrations/0006_add_tirage_switch.py | 1 - bda/migrations/0007_extends_spectacle.py | 1 - bda/migrations/0008_py3.py | 1 - bda/migrations/0009_revente.py | 1 - bda/migrations/0010_spectaclerevente_shotgun.py | 1 - bda/migrations/0011_tirage_appear_catalogue.py | 1 - bda/migrations/0012_notif_time.py | 1 - bda/migrations/0012_swap_double_choice.py | 1 - bda/migrations/0013_merge_20180524_2123.py | 1 - bda/migrations/0014_attribution_paid_field.py | 1 - bda/migrations/0015_move_bda_payment.py | 1 - bda/migrations/0016_delete_participant_paid.py | 1 - bda/migrations/0017_participant_accepte_charte.py | 1 - bda/migrations/0018_auto_20201021_1818.py | 1 - bda/views.py | 8 ++++---- bds/migrations/0001_initial.py | 1 - bds/migrations/0002_bds_group.py | 1 - bds/migrations/0003_staff_permission.py | 1 - bds/migrations/0004_is_member_cotiz_type.py | 1 - bds/migrations/0005_remove_bdsprofile_certificate_file.py | 1 - bds/migrations/0006_bdsprofile_comments.py | 1 - clubs/migrations/0001_initial.py | 1 - events/migrations/0001_event.py | 1 - events/migrations/0002_event_subscribers.py | 1 - events/migrations/0003_options_and_extra_fields.py | 1 - events/migrations/0004_unique_constraints.py | 1 - gestioasso/urls.py | 2 +- gestioncof/cms/migrations/0001_initial.py | 1 - gestioncof/cms/migrations/0002_auto_20190523_1521.py | 1 - .../cms/migrations/0003_directory_entry_optional_links.py | 1 - gestioncof/cms/migrations/0004_auto_20200829_2314.py | 1 - gestioncof/migrations/0001_initial.py | 1 - gestioncof/migrations/0002_enable_unprocessed_demandes.py | 1 - gestioncof/migrations/0003_event_image.py | 1 - gestioncof/migrations/0004_registration_mail.py | 1 - gestioncof/migrations/0005_encoding.py | 1 - gestioncof/migrations/0006_add_calendar.py | 1 - gestioncof/migrations/0007_alter_club.py | 1 - gestioncof/migrations/0008_py3.py | 1 - gestioncof/migrations/0009_delete_clipper.py | 1 - gestioncof/migrations/0010_delete_custommail.py | 1 - gestioncof/migrations/0011_longer_clippers.py | 1 - gestioncof/migrations/0011_remove_cofprofile_num.py | 1 - gestioncof/migrations/0012_merge.py | 1 - gestioncof/migrations/0013_pei.py | 1 - .../migrations/0014_cofprofile_mailing_unernestaparis.py | 1 - gestioncof/migrations/0015_psql_choices_niveaux.py | 1 - gestioncof/migrations/0016_unique_clippers.py | 1 - gestioncof/migrations/0017_petitscours_uniqueness.py | 1 - gestioncof/migrations/0018_petitscours_email.py | 1 - gestioncof/tests/test_views.py | 1 - kfet/auth/migrations/0001_initial.py | 1 - kfet/auth/migrations/0002_kfetgroup_kfetpermission.py | 1 - kfet/auth/migrations/0003_existing_groups.py | 1 - kfet/cms/management/commands/kfet_loadwagtail.py | 1 - kfet/cms/migrations/0001_initial.py | 1 - kfet/cms/migrations/0002_alter_kfetpage_colcount.py | 1 - kfet/cms/models.py | 1 - kfet/forms.py | 1 - kfet/management/commands/createopes.py | 3 --- kfet/management/commands/loadkfetdevdata.py | 4 ++-- kfet/migrations/0001_initial.py | 1 - kfet/migrations/0002_auto_20160802_2139.py | 1 - kfet/migrations/0003_auto_20160802_2142.py | 1 - kfet/migrations/0004_auto_20160802_2144.py | 1 - kfet/migrations/0005_auto_20160802_2154.py | 1 - kfet/migrations/0006_auto_20160804_0600.py | 1 - kfet/migrations/0007_auto_20160804_0641.py | 1 - kfet/migrations/0008_auto_20160804_1736.py | 1 - kfet/migrations/0009_auto_20160805_0720.py | 1 - kfet/migrations/0010_auto_20160806_2343.py | 1 - kfet/migrations/0011_auto_20160807_1720.py | 1 - kfet/migrations/0012_settings.py | 1 - kfet/migrations/0013_auto_20160807_1840.py | 1 - kfet/migrations/0014_auto_20160807_2314.py | 1 - kfet/migrations/0015_auto_20160807_2324.py | 1 - kfet/migrations/0016_settings_value_account.py | 1 - kfet/migrations/0017_auto_20160808_0234.py | 1 - kfet/migrations/0018_auto_20160808_0341.py | 1 - kfet/migrations/0019_auto_20160808_0343.py | 1 - kfet/migrations/0020_auto_20160808_0450.py | 1 - kfet/migrations/0021_auto_20160808_0506.py | 1 - kfet/migrations/0022_auto_20160808_0512.py | 1 - kfet/migrations/0023_auto_20160808_0535.py | 1 - kfet/migrations/0024_settings_value_duration.py | 1 - kfet/migrations/0025_auto_20160809_0750.py | 1 - kfet/migrations/0026_auto_20160809_0810.py | 1 - kfet/migrations/0027_auto_20160811_0648.py | 1 - kfet/migrations/0028_auto_20160820_0146.py | 1 - kfet/migrations/0029_genericteamtoken.py | 1 - kfet/migrations/0030_auto_20160821_0029.py | 1 - kfet/migrations/0031_auto_20160822_0523.py | 1 - kfet/migrations/0032_auto_20160822_2350.py | 1 - kfet/migrations/0033_checkoutstatement_not_count.py | 1 - kfet/migrations/0034_auto_20160823_0206.py | 1 - kfet/migrations/0035_auto_20160823_1505.py | 1 - kfet/migrations/0036_auto_20160823_1910.py | 1 - kfet/migrations/0037_auto_20160826_2333.py | 1 - kfet/migrations/0038_auto_20160828_0402.py | 1 - kfet/migrations/0039_auto_20160828_0430.py | 1 - kfet/migrations/0040_auto_20160829_2035.py | 1 - kfet/migrations/0041_auto_20160830_1502.py | 1 - kfet/migrations/0042_auto_20160831_0126.py | 1 - kfet/migrations/0043_auto_20160901_0046.py | 1 - kfet/migrations/0044_auto_20160901_1614.py | 1 - kfet/migrations/0045_auto_20160905_0705.py | 1 - kfet/migrations/0046_account_created_at.py | 1 - kfet/migrations/0047_auto_20170104_1528.py | 1 - kfet/migrations/0048_article_hidden.py | 1 - kfet/migrations/0048_default_datetime.py | 1 - kfet/migrations/0049_merge.py | 1 - kfet/migrations/0050_remove_checkout.py | 1 - kfet/migrations/0051_verbose_names.py | 1 - kfet/migrations/0052_category_addcost.py | 1 - kfet/migrations/0053_created_at.py | 1 - kfet/migrations/0054_delete_settings.py | 1 - kfet/migrations/0054_update_promos.py | 1 - kfet/migrations/0055_move_permissions.py | 1 - kfet/migrations/0056_change_account_meta.py | 1 - kfet/migrations/0057_merge.py | 1 - kfet/migrations/0058_delete_genericteamtoken.py | 1 - kfet/migrations/0059_create_generic.py | 1 - kfet/migrations/0060_amend_supplier.py | 1 - kfet/migrations/0061_add_perms_config.py | 1 - kfet/migrations/0063_promo.py | 1 - kfet/migrations/0064_promo_2018.py | 1 - kfet/migrations/0065_choices_promo.py | 1 - kfet/migrations/0066_on_delete_actions.py | 1 - kfet/migrations/0067_deleted_account.py | 1 - kfet/migrations/0068_on_delete_account.py | 1 - kfet/migrations/0069_happy_new_year.py | 1 - kfet/migrations/0070_articlecategory_has_reduction.py | 1 - kfet/migrations/0071_promo_2020.py | 1 - kfet/migrations/0072_auto_20200901_1526.py | 1 - kfet/migrations/0073_2021.py | 1 - kfet/migrations/0074_auto_20210219_1337.py | 1 - .../0075_remove_accountnegative_balance_offset.py | 1 - kfet/migrations/0076_unfreeze_accounts.py | 1 - kfet/migrations/0077_delete_frozen_permission.py | 1 - kfet/migrations/0078_negative_end.py | 1 - kfet/migrations/0079_auto_20210627_0022.py | 1 - kfet/migrations/0080_accountnegative_last_rappel.py | 1 - kfet/models.py | 1 - kfet/views.py | 8 +++----- petitscours/views.py | 2 +- 153 files changed, 12 insertions(+), 163 deletions(-) diff --git a/bda/admin.py b/bda/admin.py index edba2c61..f52f721d 100644 --- a/bda/admin.py +++ b/bda/admin.py @@ -211,7 +211,6 @@ class AttributionAdminForm(forms.ModelForm): class AttributionAdmin(ReadOnlyMixin, admin.ModelAdmin): - list_display = ("id", "spectacle", "participant", "given", "paid") search_fields = ( "spectacle__title", diff --git a/bda/algorithm.py b/bda/algorithm.py index 3d4b4f51..078f2be8 100644 --- a/bda/algorithm.py +++ b/bda/algorithm.py @@ -2,7 +2,6 @@ import random class Algorithm(object): - shows = None ranks = None origranks = None diff --git a/bda/management/commands/loadbdadevdata.py b/bda/management/commands/loadbdadevdata.py index a608db6a..186e1da7 100644 --- a/bda/management/commands/loadbdadevdata.py +++ b/bda/management/commands/loadbdadevdata.py @@ -81,7 +81,7 @@ class Command(MyBaseCommand): shows = random.sample( list(tirage.spectacle_set.all()), tirage.spectacle_set.count() // 2 ) - for (rank, show) in enumerate(shows): + for rank, show in enumerate(shows): choices.append( ChoixSpectacle( participant=part, diff --git a/bda/migrations/0001_initial.py b/bda/migrations/0001_initial.py index 077ddd4e..5bc848c8 100644 --- a/bda/migrations/0001_initial.py +++ b/bda/migrations/0001_initial.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)] operations = [ diff --git a/bda/migrations/0002_add_tirage.py b/bda/migrations/0002_add_tirage.py index f4b01ed2..c2c6bd3c 100644 --- a/bda/migrations/0002_add_tirage.py +++ b/bda/migrations/0002_add_tirage.py @@ -35,7 +35,6 @@ def fill_tirage_fields(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("bda", "0001_initial")] operations = [ diff --git a/bda/migrations/0003_update_tirage_and_spectacle.py b/bda/migrations/0003_update_tirage_and_spectacle.py index 3548eb88..07f3742e 100644 --- a/bda/migrations/0003_update_tirage_and_spectacle.py +++ b/bda/migrations/0003_update_tirage_and_spectacle.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0002_add_tirage")] operations = [ diff --git a/bda/migrations/0004_mails-rappel.py b/bda/migrations/0004_mails-rappel.py index d331568a..407353a4 100644 --- a/bda/migrations/0004_mails-rappel.py +++ b/bda/migrations/0004_mails-rappel.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0003_update_tirage_and_spectacle")] operations = [ diff --git a/bda/migrations/0005_encoding.py b/bda/migrations/0005_encoding.py index eedfcee4..29ee0027 100644 --- a/bda/migrations/0005_encoding.py +++ b/bda/migrations/0005_encoding.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0004_mails-rappel")] operations = [ diff --git a/bda/migrations/0006_add_tirage_switch.py b/bda/migrations/0006_add_tirage_switch.py index ccfe7505..1535a5fe 100644 --- a/bda/migrations/0006_add_tirage_switch.py +++ b/bda/migrations/0006_add_tirage_switch.py @@ -18,7 +18,6 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("bda", "0005_encoding")] operations = [ diff --git a/bda/migrations/0007_extends_spectacle.py b/bda/migrations/0007_extends_spectacle.py index 87182ff7..48865acb 100644 --- a/bda/migrations/0007_extends_spectacle.py +++ b/bda/migrations/0007_extends_spectacle.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0006_add_tirage_switch")] operations = [ diff --git a/bda/migrations/0008_py3.py b/bda/migrations/0008_py3.py index 6aa69abd..3a7dfeb1 100644 --- a/bda/migrations/0008_py3.py +++ b/bda/migrations/0008_py3.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0007_extends_spectacle")] operations = [ diff --git a/bda/migrations/0009_revente.py b/bda/migrations/0009_revente.py index d888140f..7a547f85 100644 --- a/bda/migrations/0009_revente.py +++ b/bda/migrations/0009_revente.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0008_py3")] operations = [ diff --git a/bda/migrations/0010_spectaclerevente_shotgun.py b/bda/migrations/0010_spectaclerevente_shotgun.py index 9acd1878..ae0fdff1 100644 --- a/bda/migrations/0010_spectaclerevente_shotgun.py +++ b/bda/migrations/0010_spectaclerevente_shotgun.py @@ -21,7 +21,6 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("bda", "0009_revente")] operations = [ diff --git a/bda/migrations/0011_tirage_appear_catalogue.py b/bda/migrations/0011_tirage_appear_catalogue.py index 446be392..a8c49e2d 100644 --- a/bda/migrations/0011_tirage_appear_catalogue.py +++ b/bda/migrations/0011_tirage_appear_catalogue.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0010_spectaclerevente_shotgun")] operations = [ diff --git a/bda/migrations/0012_notif_time.py b/bda/migrations/0012_notif_time.py index 96853a24..78ef8dce 100644 --- a/bda/migrations/0012_notif_time.py +++ b/bda/migrations/0012_notif_time.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0011_tirage_appear_catalogue")] operations = [ diff --git a/bda/migrations/0012_swap_double_choice.py b/bda/migrations/0012_swap_double_choice.py index e712f2ff..dcb8056d 100644 --- a/bda/migrations/0012_swap_double_choice.py +++ b/bda/migrations/0012_swap_double_choice.py @@ -13,7 +13,6 @@ def swap_double_choice(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("bda", "0011_tirage_appear_catalogue")] operations = [ diff --git a/bda/migrations/0013_merge_20180524_2123.py b/bda/migrations/0013_merge_20180524_2123.py index 8f78b6a9..b974abf2 100644 --- a/bda/migrations/0013_merge_20180524_2123.py +++ b/bda/migrations/0013_merge_20180524_2123.py @@ -6,7 +6,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [("bda", "0012_notif_time"), ("bda", "0012_swap_double_choice")] operations = [] diff --git a/bda/migrations/0014_attribution_paid_field.py b/bda/migrations/0014_attribution_paid_field.py index b5bb6208..e5ef2b2d 100644 --- a/bda/migrations/0014_attribution_paid_field.py +++ b/bda/migrations/0014_attribution_paid_field.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0013_merge_20180524_2123")] operations = [ diff --git a/bda/migrations/0015_move_bda_payment.py b/bda/migrations/0015_move_bda_payment.py index 93f121a1..a39a159c 100644 --- a/bda/migrations/0015_move_bda_payment.py +++ b/bda/migrations/0015_move_bda_payment.py @@ -29,7 +29,6 @@ def set_participant_payment(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("bda", "0014_attribution_paid_field")] operations = [ diff --git a/bda/migrations/0016_delete_participant_paid.py b/bda/migrations/0016_delete_participant_paid.py index f59d1eb9..86a17b24 100644 --- a/bda/migrations/0016_delete_participant_paid.py +++ b/bda/migrations/0016_delete_participant_paid.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [("bda", "0015_move_bda_payment")] operations = [ diff --git a/bda/migrations/0017_participant_accepte_charte.py b/bda/migrations/0017_participant_accepte_charte.py index 6bd32d8f..3157654b 100644 --- a/bda/migrations/0017_participant_accepte_charte.py +++ b/bda/migrations/0017_participant_accepte_charte.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("bda", "0016_delete_participant_paid")] operations = [ diff --git a/bda/migrations/0018_auto_20201021_1818.py b/bda/migrations/0018_auto_20201021_1818.py index 88a56c39..444f32d8 100644 --- a/bda/migrations/0018_auto_20201021_1818.py +++ b/bda/migrations/0018_auto_20201021_1818.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("bda", "0017_participant_accepte_charte"), ] diff --git a/bda/views.py b/bda/views.py index a6fb1804..d8852674 100644 --- a/bda/views.py +++ b/bda/views.py @@ -274,13 +274,13 @@ def do_tirage(tirage_elt, token): results = Algorithm(data["shows"], data["members"], choices)(token) # On compte les places attribuées et les déçus - for (_, members, losers) in results: + for _, members, losers in results: data["total_slots"] += len(members) data["total_losers"] += len(losers) # On calcule le déficit et les bénéfices pour le BdA # FIXME: le traitement de l'opéra est sale - for (show, members, _) in results: + for show, members, _ in results: deficit = (show.slots - len(members)) * show.price data["total_sold"] += show.slots * show.price if deficit >= 0: @@ -293,8 +293,8 @@ def do_tirage(tirage_elt, token): # so assign a single object for each Participant id members_uniq = {} members2 = {} - for (show, members, _) in results: - for (member, _, _, _) in members: + for show, members, _ in results: + for member, _, _, _ in members: if member.id not in members_uniq: members_uniq[member.id] = member members2[member] = [] diff --git a/bds/migrations/0001_initial.py b/bds/migrations/0001_initial.py index e6fe5377..b78a752b 100644 --- a/bds/migrations/0001_initial.py +++ b/bds/migrations/0001_initial.py @@ -8,7 +8,6 @@ import bds.models class Migration(migrations.Migration): - initial = True dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)] diff --git a/bds/migrations/0002_bds_group.py b/bds/migrations/0002_bds_group.py index a55e76eb..73f57885 100644 --- a/bds/migrations/0002_bds_group.py +++ b/bds/migrations/0002_bds_group.py @@ -9,7 +9,6 @@ def create_bds_buro_group(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("bds", "0001_initial")] operations = [ diff --git a/bds/migrations/0003_staff_permission.py b/bds/migrations/0003_staff_permission.py index 4e61981c..7f501af1 100644 --- a/bds/migrations/0003_staff_permission.py +++ b/bds/migrations/0003_staff_permission.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("bds", "0002_bds_group"), ] diff --git a/bds/migrations/0004_is_member_cotiz_type.py b/bds/migrations/0004_is_member_cotiz_type.py index 2910ee85..3b550fdf 100644 --- a/bds/migrations/0004_is_member_cotiz_type.py +++ b/bds/migrations/0004_is_member_cotiz_type.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("bds", "0003_staff_permission"), ] diff --git a/bds/migrations/0005_remove_bdsprofile_certificate_file.py b/bds/migrations/0005_remove_bdsprofile_certificate_file.py index faafb3dc..3b7232ff 100644 --- a/bds/migrations/0005_remove_bdsprofile_certificate_file.py +++ b/bds/migrations/0005_remove_bdsprofile_certificate_file.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("bds", "0004_is_member_cotiz_type"), ] diff --git a/bds/migrations/0006_bdsprofile_comments.py b/bds/migrations/0006_bdsprofile_comments.py index 7950955f..514c4d55 100644 --- a/bds/migrations/0006_bdsprofile_comments.py +++ b/bds/migrations/0006_bdsprofile_comments.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("bds", "0005_remove_bdsprofile_certificate_file"), ] diff --git a/clubs/migrations/0001_initial.py b/clubs/migrations/0001_initial.py index 689b5d33..8b9d60bc 100644 --- a/clubs/migrations/0001_initial.py +++ b/clubs/migrations/0001_initial.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - initial = True dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)] diff --git a/events/migrations/0001_event.py b/events/migrations/0001_event.py index dc3a6bce..4b70d087 100644 --- a/events/migrations/0001_event.py +++ b/events/migrations/0001_event.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - initial = True dependencies = [] diff --git a/events/migrations/0002_event_subscribers.py b/events/migrations/0002_event_subscribers.py index 7c0c35f7..b8980a78 100644 --- a/events/migrations/0002_event_subscribers.py +++ b/events/migrations/0002_event_subscribers.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("events", "0001_event"), diff --git a/events/migrations/0003_options_and_extra_fields.py b/events/migrations/0003_options_and_extra_fields.py index 8e6e624d..0e993e7b 100644 --- a/events/migrations/0003_options_and_extra_fields.py +++ b/events/migrations/0003_options_and_extra_fields.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("events", "0002_event_subscribers"), diff --git a/events/migrations/0004_unique_constraints.py b/events/migrations/0004_unique_constraints.py index fa3ab610..4e73a8a8 100644 --- a/events/migrations/0004_unique_constraints.py +++ b/events/migrations/0004_unique_constraints.py @@ -5,7 +5,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("events", "0003_options_and_extra_fields"), diff --git a/gestioasso/urls.py b/gestioasso/urls.py index 0fa72c58..10173fbb 100644 --- a/gestioasso/urls.py +++ b/gestioasso/urls.py @@ -35,7 +35,7 @@ app_dict = { "events": "gestion/event_v2/", # the events module is still experimental ! "authens": "gestion/authens/", } -for (app_name, url_prefix) in app_dict.items(): +for app_name, url_prefix in app_dict.items(): if app_name in settings.INSTALLED_APPS: urlpatterns += [path(url_prefix, include("{}.urls".format(app_name)))] diff --git a/gestioncof/cms/migrations/0001_initial.py b/gestioncof/cms/migrations/0001_initial.py index 6c6a801e..36a3ff1f 100644 --- a/gestioncof/cms/migrations/0001_initial.py +++ b/gestioncof/cms/migrations/0001_initial.py @@ -13,7 +13,6 @@ import gestioncof.cms.models class Migration(migrations.Migration): - initial = True dependencies = [ diff --git a/gestioncof/cms/migrations/0002_auto_20190523_1521.py b/gestioncof/cms/migrations/0002_auto_20190523_1521.py index 35e50b8e..1a0a87d4 100644 --- a/gestioncof/cms/migrations/0002_auto_20190523_1521.py +++ b/gestioncof/cms/migrations/0002_auto_20190523_1521.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("cofcms", "0001_initial")] operations = [ diff --git a/gestioncof/cms/migrations/0003_directory_entry_optional_links.py b/gestioncof/cms/migrations/0003_directory_entry_optional_links.py index 10cf5c5e..6555236b 100644 --- a/gestioncof/cms/migrations/0003_directory_entry_optional_links.py +++ b/gestioncof/cms/migrations/0003_directory_entry_optional_links.py @@ -6,7 +6,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("cofcms", "0002_auto_20190523_1521"), ] diff --git a/gestioncof/cms/migrations/0004_auto_20200829_2314.py b/gestioncof/cms/migrations/0004_auto_20200829_2314.py index ec9a88c1..dd525a2c 100644 --- a/gestioncof/cms/migrations/0004_auto_20200829_2314.py +++ b/gestioncof/cms/migrations/0004_auto_20200829_2314.py @@ -6,7 +6,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("cofcms", "0003_directory_entry_optional_links"), ] diff --git a/gestioncof/migrations/0001_initial.py b/gestioncof/migrations/0001_initial.py index b3c10b90..a3edc13d 100644 --- a/gestioncof/migrations/0001_initial.py +++ b/gestioncof/migrations/0001_initial.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)] operations = [ diff --git a/gestioncof/migrations/0002_enable_unprocessed_demandes.py b/gestioncof/migrations/0002_enable_unprocessed_demandes.py index d8514036..239b8831 100644 --- a/gestioncof/migrations/0002_enable_unprocessed_demandes.py +++ b/gestioncof/migrations/0002_enable_unprocessed_demandes.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0001_initial")] operations = [ diff --git a/gestioncof/migrations/0003_event_image.py b/gestioncof/migrations/0003_event_image.py index ac5d753b..eeede90b 100644 --- a/gestioncof/migrations/0003_event_image.py +++ b/gestioncof/migrations/0003_event_image.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0002_enable_unprocessed_demandes")] operations = [ diff --git a/gestioncof/migrations/0004_registration_mail.py b/gestioncof/migrations/0004_registration_mail.py index 0ceba245..92cb58a0 100644 --- a/gestioncof/migrations/0004_registration_mail.py +++ b/gestioncof/migrations/0004_registration_mail.py @@ -25,7 +25,6 @@ def create_mail(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("gestioncof", "0003_event_image")] operations = [ diff --git a/gestioncof/migrations/0005_encoding.py b/gestioncof/migrations/0005_encoding.py index 33c8502a..b02da10c 100644 --- a/gestioncof/migrations/0005_encoding.py +++ b/gestioncof/migrations/0005_encoding.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0004_registration_mail")] operations = [ diff --git a/gestioncof/migrations/0006_add_calendar.py b/gestioncof/migrations/0006_add_calendar.py index 760fe56c..51a11089 100644 --- a/gestioncof/migrations/0006_add_calendar.py +++ b/gestioncof/migrations/0006_add_calendar.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("bda", "0004_mails-rappel"), migrations.swappable_dependency(settings.AUTH_USER_MODEL), diff --git a/gestioncof/migrations/0007_alter_club.py b/gestioncof/migrations/0007_alter_club.py index 13603370..46a61bc2 100644 --- a/gestioncof/migrations/0007_alter_club.py +++ b/gestioncof/migrations/0007_alter_club.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0006_add_calendar")] operations = [ diff --git a/gestioncof/migrations/0008_py3.py b/gestioncof/migrations/0008_py3.py index f2b89aa4..60c72e7b 100644 --- a/gestioncof/migrations/0008_py3.py +++ b/gestioncof/migrations/0008_py3.py @@ -10,7 +10,6 @@ def forwards(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("gestioncof", "0007_alter_club")] operations = [ diff --git a/gestioncof/migrations/0009_delete_clipper.py b/gestioncof/migrations/0009_delete_clipper.py index 35362716..bcd54711 100644 --- a/gestioncof/migrations/0009_delete_clipper.py +++ b/gestioncof/migrations/0009_delete_clipper.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0008_py3")] operations = [migrations.DeleteModel(name="Clipper")] diff --git a/gestioncof/migrations/0010_delete_custommail.py b/gestioncof/migrations/0010_delete_custommail.py index 2434faf2..ffc281cf 100644 --- a/gestioncof/migrations/0010_delete_custommail.py +++ b/gestioncof/migrations/0010_delete_custommail.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [("gestioncof", "0009_delete_clipper")] operations = [migrations.DeleteModel(name="CustomMail")] diff --git a/gestioncof/migrations/0011_longer_clippers.py b/gestioncof/migrations/0011_longer_clippers.py index 777f79a8..d4f8549d 100644 --- a/gestioncof/migrations/0011_longer_clippers.py +++ b/gestioncof/migrations/0011_longer_clippers.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0010_delete_custommail")] operations = [ diff --git a/gestioncof/migrations/0011_remove_cofprofile_num.py b/gestioncof/migrations/0011_remove_cofprofile_num.py index abf97768..88ad31d5 100644 --- a/gestioncof/migrations/0011_remove_cofprofile_num.py +++ b/gestioncof/migrations/0011_remove_cofprofile_num.py @@ -5,7 +5,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [("gestioncof", "0010_delete_custommail")] operations = [migrations.RemoveField(model_name="cofprofile", name="num")] diff --git a/gestioncof/migrations/0012_merge.py b/gestioncof/migrations/0012_merge.py index 5e23119d..518c150c 100644 --- a/gestioncof/migrations/0012_merge.py +++ b/gestioncof/migrations/0012_merge.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("gestioncof", "0011_remove_cofprofile_num"), ("gestioncof", "0011_longer_clippers"), diff --git a/gestioncof/migrations/0013_pei.py b/gestioncof/migrations/0013_pei.py index 186d458d..791e63f6 100644 --- a/gestioncof/migrations/0013_pei.py +++ b/gestioncof/migrations/0013_pei.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0012_merge")] operations = [ diff --git a/gestioncof/migrations/0014_cofprofile_mailing_unernestaparis.py b/gestioncof/migrations/0014_cofprofile_mailing_unernestaparis.py index b849bfca..efb1fa40 100644 --- a/gestioncof/migrations/0014_cofprofile_mailing_unernestaparis.py +++ b/gestioncof/migrations/0014_cofprofile_mailing_unernestaparis.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0013_pei")] operations = [ diff --git a/gestioncof/migrations/0015_psql_choices_niveaux.py b/gestioncof/migrations/0015_psql_choices_niveaux.py index 2389cf41..17de1a95 100644 --- a/gestioncof/migrations/0015_psql_choices_niveaux.py +++ b/gestioncof/migrations/0015_psql_choices_niveaux.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0014_cofprofile_mailing_unernestaparis")] operations = [ diff --git a/gestioncof/migrations/0016_unique_clippers.py b/gestioncof/migrations/0016_unique_clippers.py index dced5148..be0a9a87 100644 --- a/gestioncof/migrations/0016_unique_clippers.py +++ b/gestioncof/migrations/0016_unique_clippers.py @@ -16,7 +16,6 @@ def null_clippers_to_empty(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("gestioncof", "0015_psql_choices_niveaux")] operations = [ diff --git a/gestioncof/migrations/0017_petitscours_uniqueness.py b/gestioncof/migrations/0017_petitscours_uniqueness.py index 32b66a94..079e7b4e 100644 --- a/gestioncof/migrations/0017_petitscours_uniqueness.py +++ b/gestioncof/migrations/0017_petitscours_uniqueness.py @@ -5,7 +5,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("gestioncof", "0016_unique_clippers"), diff --git a/gestioncof/migrations/0018_petitscours_email.py b/gestioncof/migrations/0018_petitscours_email.py index 3fc803b3..fe65afb5 100644 --- a/gestioncof/migrations/0018_petitscours_email.py +++ b/gestioncof/migrations/0018_petitscours_email.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("gestioncof", "0017_petitscours_uniqueness"), ] diff --git a/gestioncof/tests/test_views.py b/gestioncof/tests/test_views.py index ecbb20f6..d4955732 100644 --- a/gestioncof/tests/test_views.py +++ b/gestioncof/tests/test_views.py @@ -548,7 +548,6 @@ class ExportMegaOrgasViewTests(MegaHelperMixin, ViewTestCaseMixin, TestCase): auth_forbidden = [None, "user", "member"] def test(self): - r = self.client.get(self.url) self.assertEqual(r.status_code, 200) diff --git a/kfet/auth/migrations/0001_initial.py b/kfet/auth/migrations/0001_initial.py index caf5d786..9919c46b 100644 --- a/kfet/auth/migrations/0001_initial.py +++ b/kfet/auth/migrations/0001_initial.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("auth", "0006_require_contenttypes_0002"), # Following dependency allows using Account model to set up the kfet diff --git a/kfet/auth/migrations/0002_kfetgroup_kfetpermission.py b/kfet/auth/migrations/0002_kfetgroup_kfetpermission.py index 48c680d0..7e87b2d6 100644 --- a/kfet/auth/migrations/0002_kfetgroup_kfetpermission.py +++ b/kfet/auth/migrations/0002_kfetgroup_kfetpermission.py @@ -7,7 +7,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("auth", "0011_update_proxy_permissions"), ("kfetauth", "0001_initial"), diff --git a/kfet/auth/migrations/0003_existing_groups.py b/kfet/auth/migrations/0003_existing_groups.py index 855a9c19..43fd221c 100644 --- a/kfet/auth/migrations/0003_existing_groups.py +++ b/kfet/auth/migrations/0003_existing_groups.py @@ -13,7 +13,6 @@ def existing_groups(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ("kfetauth", "0002_kfetgroup_kfetpermission"), ] diff --git a/kfet/cms/management/commands/kfet_loadwagtail.py b/kfet/cms/management/commands/kfet_loadwagtail.py index 2448a595..17ed842a 100644 --- a/kfet/cms/management/commands/kfet_loadwagtail.py +++ b/kfet/cms/management/commands/kfet_loadwagtail.py @@ -11,7 +11,6 @@ class Command(BaseCommand): parser.add_argument("--file", default="kfet_wagtail_02_19") def handle(self, *args, **options): - self.stdout.write("Import des données wagtail") # Nettoyage des données initiales posées par Wagtail dans la migration diff --git a/kfet/cms/migrations/0001_initial.py b/kfet/cms/migrations/0001_initial.py index 992f6052..af3a1f09 100644 --- a/kfet/cms/migrations/0001_initial.py +++ b/kfet/cms/migrations/0001_initial.py @@ -11,7 +11,6 @@ import kfet.cms.models class Migration(migrations.Migration): - dependencies = [ ("wagtailcore", "0033_remove_golive_expiry_help_text"), ("wagtailimages", "0019_delete_filter"), diff --git a/kfet/cms/migrations/0002_alter_kfetpage_colcount.py b/kfet/cms/migrations/0002_alter_kfetpage_colcount.py index 4eace262..4df56993 100644 --- a/kfet/cms/migrations/0002_alter_kfetpage_colcount.py +++ b/kfet/cms/migrations/0002_alter_kfetpage_colcount.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfetcms", "0001_initial")] operations = [ diff --git a/kfet/cms/models.py b/kfet/cms/models.py index b9061b21..81075d1c 100644 --- a/kfet/cms/models.py +++ b/kfet/cms/models.py @@ -97,7 +97,6 @@ class KFetStreamBlock(ChoicesStreamBlock): class KFetPage(Page): - content = StreamField(KFetStreamBlock, verbose_name=_("Contenu")) # Layout fields diff --git a/kfet/forms.py b/kfet/forms.py index 8ab301a1..db8404ef 100644 --- a/kfet/forms.py +++ b/kfet/forms.py @@ -461,7 +461,6 @@ class AddcostForm(forms.Form): class KFetConfigForm(ConfigForm): - kfet_reduction_cof = forms.DecimalField( label="Réduction COF", initial=Decimal("20"), diff --git a/kfet/management/commands/createopes.py b/kfet/management/commands/createopes.py index 03458ea0..3f8f7cf4 100644 --- a/kfet/management/commands/createopes.py +++ b/kfet/management/commands/createopes.py @@ -41,7 +41,6 @@ class Command(BaseCommand): ) def handle(self, *args, **options): - self.stdout.write("Génération d'opérations") # Output log vars @@ -74,7 +73,6 @@ class Command(BaseCommand): opegroup_list = [] for i in range(num_ops): - # Randomly pick account if random.random() > 0.25: account = random.choice(accounts) @@ -174,7 +172,6 @@ class Command(BaseCommand): at_list = [] for i in range(num_transfers): - # Randomly pick time at = now - timedelta(seconds=random.randint(0, time)) diff --git a/kfet/management/commands/loadkfetdevdata.py b/kfet/management/commands/loadkfetdevdata.py index 2a15cb0a..0f0c15fe 100644 --- a/kfet/management/commands/loadkfetdevdata.py +++ b/kfet/management/commands/loadkfetdevdata.py @@ -63,7 +63,7 @@ class Command(MyBaseCommand): created_accounts = 0 team_accounts = 0 - for (profile, trigramme) in zip(gaulois, gaulois_trigramme): + for profile, trigramme in zip(gaulois, gaulois_trigramme): account, created = Account.objects.get_or_create( trigramme=trigramme, cofprofile=profile, @@ -74,7 +74,7 @@ class Command(MyBaseCommand): if profile.user.first_name == "Abraracourcix": profile.user.groups.add(group_chef) - for (profile, trigramme) in zip(romains, romains_trigramme): + for profile, trigramme in zip(romains, romains_trigramme): account, created = Account.objects.get_or_create( trigramme=trigramme, cofprofile=profile, diff --git a/kfet/migrations/0001_initial.py b/kfet/migrations/0001_initial.py index 8dbad4a8..403a1c22 100644 --- a/kfet/migrations/0001_initial.py +++ b/kfet/migrations/0001_initial.py @@ -9,7 +9,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("gestioncof", "0007_alter_club")] operations = [ diff --git a/kfet/migrations/0002_auto_20160802_2139.py b/kfet/migrations/0002_auto_20160802_2139.py index 39ccbbe5..3f91c880 100644 --- a/kfet/migrations/0002_auto_20160802_2139.py +++ b/kfet/migrations/0002_auto_20160802_2139.py @@ -7,7 +7,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0001_initial")] operations = [ diff --git a/kfet/migrations/0003_auto_20160802_2142.py b/kfet/migrations/0003_auto_20160802_2142.py index c3bfda52..57ca930c 100644 --- a/kfet/migrations/0003_auto_20160802_2142.py +++ b/kfet/migrations/0003_auto_20160802_2142.py @@ -7,7 +7,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0002_auto_20160802_2139")] operations = [ diff --git a/kfet/migrations/0004_auto_20160802_2144.py b/kfet/migrations/0004_auto_20160802_2144.py index 48646cef..0690bb22 100644 --- a/kfet/migrations/0004_auto_20160802_2144.py +++ b/kfet/migrations/0004_auto_20160802_2144.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0003_auto_20160802_2142")] operations = [ diff --git a/kfet/migrations/0005_auto_20160802_2154.py b/kfet/migrations/0005_auto_20160802_2154.py index 49c96b1c..27b3450d 100644 --- a/kfet/migrations/0005_auto_20160802_2154.py +++ b/kfet/migrations/0005_auto_20160802_2154.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0004_auto_20160802_2144")] operations = [ diff --git a/kfet/migrations/0006_auto_20160804_0600.py b/kfet/migrations/0006_auto_20160804_0600.py index 524e1352..e95ad017 100644 --- a/kfet/migrations/0006_auto_20160804_0600.py +++ b/kfet/migrations/0006_auto_20160804_0600.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0005_auto_20160802_2154")] operations = [ diff --git a/kfet/migrations/0007_auto_20160804_0641.py b/kfet/migrations/0007_auto_20160804_0641.py index fb870a71..d9326cf2 100644 --- a/kfet/migrations/0007_auto_20160804_0641.py +++ b/kfet/migrations/0007_auto_20160804_0641.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0006_auto_20160804_0600")] operations = [ diff --git a/kfet/migrations/0008_auto_20160804_1736.py b/kfet/migrations/0008_auto_20160804_1736.py index 930562b0..4953a50e 100644 --- a/kfet/migrations/0008_auto_20160804_1736.py +++ b/kfet/migrations/0008_auto_20160804_1736.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0007_auto_20160804_0641")] operations = [ diff --git a/kfet/migrations/0009_auto_20160805_0720.py b/kfet/migrations/0009_auto_20160805_0720.py index 90a19749..3fef355f 100644 --- a/kfet/migrations/0009_auto_20160805_0720.py +++ b/kfet/migrations/0009_auto_20160805_0720.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0008_auto_20160804_1736")] operations = [ diff --git a/kfet/migrations/0010_auto_20160806_2343.py b/kfet/migrations/0010_auto_20160806_2343.py index 84267a6d..14ea35dc 100644 --- a/kfet/migrations/0010_auto_20160806_2343.py +++ b/kfet/migrations/0010_auto_20160806_2343.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0009_auto_20160805_0720")] operations = [ diff --git a/kfet/migrations/0011_auto_20160807_1720.py b/kfet/migrations/0011_auto_20160807_1720.py index 53064235..806036bc 100644 --- a/kfet/migrations/0011_auto_20160807_1720.py +++ b/kfet/migrations/0011_auto_20160807_1720.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0010_auto_20160806_2343")] operations = [ diff --git a/kfet/migrations/0012_settings.py b/kfet/migrations/0012_settings.py index 1bae911d..08fcd9d9 100644 --- a/kfet/migrations/0012_settings.py +++ b/kfet/migrations/0012_settings.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0011_auto_20160807_1720")] operations = [ diff --git a/kfet/migrations/0013_auto_20160807_1840.py b/kfet/migrations/0013_auto_20160807_1840.py index 9a9ac3b1..3eac5f07 100644 --- a/kfet/migrations/0013_auto_20160807_1840.py +++ b/kfet/migrations/0013_auto_20160807_1840.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0012_settings")] operations = [ diff --git a/kfet/migrations/0014_auto_20160807_2314.py b/kfet/migrations/0014_auto_20160807_2314.py index ecaee428..b6cc029e 100644 --- a/kfet/migrations/0014_auto_20160807_2314.py +++ b/kfet/migrations/0014_auto_20160807_2314.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0013_auto_20160807_1840")] operations = [ diff --git a/kfet/migrations/0015_auto_20160807_2324.py b/kfet/migrations/0015_auto_20160807_2324.py index fa2af882..29e130f6 100644 --- a/kfet/migrations/0015_auto_20160807_2324.py +++ b/kfet/migrations/0015_auto_20160807_2324.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0014_auto_20160807_2314")] operations = [ diff --git a/kfet/migrations/0016_settings_value_account.py b/kfet/migrations/0016_settings_value_account.py index e10eb682..6abc615e 100644 --- a/kfet/migrations/0016_settings_value_account.py +++ b/kfet/migrations/0016_settings_value_account.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0015_auto_20160807_2324")] operations = [ diff --git a/kfet/migrations/0017_auto_20160808_0234.py b/kfet/migrations/0017_auto_20160808_0234.py index 795078a9..fb177e4a 100644 --- a/kfet/migrations/0017_auto_20160808_0234.py +++ b/kfet/migrations/0017_auto_20160808_0234.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0016_settings_value_account")] operations = [ diff --git a/kfet/migrations/0018_auto_20160808_0341.py b/kfet/migrations/0018_auto_20160808_0341.py index 3b29b716..26d69745 100644 --- a/kfet/migrations/0018_auto_20160808_0341.py +++ b/kfet/migrations/0018_auto_20160808_0341.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0017_auto_20160808_0234")] operations = [ diff --git a/kfet/migrations/0019_auto_20160808_0343.py b/kfet/migrations/0019_auto_20160808_0343.py index f500032a..14444901 100644 --- a/kfet/migrations/0019_auto_20160808_0343.py +++ b/kfet/migrations/0019_auto_20160808_0343.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0018_auto_20160808_0341")] operations = [ diff --git a/kfet/migrations/0020_auto_20160808_0450.py b/kfet/migrations/0020_auto_20160808_0450.py index d3424bac..132d22d7 100644 --- a/kfet/migrations/0020_auto_20160808_0450.py +++ b/kfet/migrations/0020_auto_20160808_0450.py @@ -7,7 +7,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0019_auto_20160808_0343")] operations = [ diff --git a/kfet/migrations/0021_auto_20160808_0506.py b/kfet/migrations/0021_auto_20160808_0506.py index 2ef48232..75ceb569 100644 --- a/kfet/migrations/0021_auto_20160808_0506.py +++ b/kfet/migrations/0021_auto_20160808_0506.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0020_auto_20160808_0450")] operations = [ diff --git a/kfet/migrations/0022_auto_20160808_0512.py b/kfet/migrations/0022_auto_20160808_0512.py index 3701e856..76894913 100644 --- a/kfet/migrations/0022_auto_20160808_0512.py +++ b/kfet/migrations/0022_auto_20160808_0512.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0021_auto_20160808_0506")] operations = [ diff --git a/kfet/migrations/0023_auto_20160808_0535.py b/kfet/migrations/0023_auto_20160808_0535.py index 03a8d1c3..30f9ee63 100644 --- a/kfet/migrations/0023_auto_20160808_0535.py +++ b/kfet/migrations/0023_auto_20160808_0535.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0022_auto_20160808_0512")] operations = [ diff --git a/kfet/migrations/0024_settings_value_duration.py b/kfet/migrations/0024_settings_value_duration.py index 56b22812..618c0649 100644 --- a/kfet/migrations/0024_settings_value_duration.py +++ b/kfet/migrations/0024_settings_value_duration.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0023_auto_20160808_0535")] operations = [ diff --git a/kfet/migrations/0025_auto_20160809_0750.py b/kfet/migrations/0025_auto_20160809_0750.py index 51f3b5a3..317cac64 100644 --- a/kfet/migrations/0025_auto_20160809_0750.py +++ b/kfet/migrations/0025_auto_20160809_0750.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0024_settings_value_duration")] operations = [ diff --git a/kfet/migrations/0026_auto_20160809_0810.py b/kfet/migrations/0026_auto_20160809_0810.py index 942eaf26..c67518ab 100644 --- a/kfet/migrations/0026_auto_20160809_0810.py +++ b/kfet/migrations/0026_auto_20160809_0810.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0025_auto_20160809_0750")] operations = [ diff --git a/kfet/migrations/0027_auto_20160811_0648.py b/kfet/migrations/0027_auto_20160811_0648.py index a0084e8a..dc560d30 100644 --- a/kfet/migrations/0027_auto_20160811_0648.py +++ b/kfet/migrations/0027_auto_20160811_0648.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0026_auto_20160809_0810")] operations = [ diff --git a/kfet/migrations/0028_auto_20160820_0146.py b/kfet/migrations/0028_auto_20160820_0146.py index a1b046cf..865aca29 100644 --- a/kfet/migrations/0028_auto_20160820_0146.py +++ b/kfet/migrations/0028_auto_20160820_0146.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0027_auto_20160811_0648")] operations = [ diff --git a/kfet/migrations/0029_genericteamtoken.py b/kfet/migrations/0029_genericteamtoken.py index c5a81f05..976ff4d9 100644 --- a/kfet/migrations/0029_genericteamtoken.py +++ b/kfet/migrations/0029_genericteamtoken.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0028_auto_20160820_0146")] operations = [ diff --git a/kfet/migrations/0030_auto_20160821_0029.py b/kfet/migrations/0030_auto_20160821_0029.py index 1858522d..b811ce3e 100644 --- a/kfet/migrations/0030_auto_20160821_0029.py +++ b/kfet/migrations/0030_auto_20160821_0029.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0029_genericteamtoken")] operations = [ diff --git a/kfet/migrations/0031_auto_20160822_0523.py b/kfet/migrations/0031_auto_20160822_0523.py index 23aec1be..5de048b6 100644 --- a/kfet/migrations/0031_auto_20160822_0523.py +++ b/kfet/migrations/0031_auto_20160822_0523.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0030_auto_20160821_0029")] operations = [ diff --git a/kfet/migrations/0032_auto_20160822_2350.py b/kfet/migrations/0032_auto_20160822_2350.py index 7cba0da3..6231a321 100644 --- a/kfet/migrations/0032_auto_20160822_2350.py +++ b/kfet/migrations/0032_auto_20160822_2350.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0031_auto_20160822_0523")] operations = [ diff --git a/kfet/migrations/0033_checkoutstatement_not_count.py b/kfet/migrations/0033_checkoutstatement_not_count.py index dd445406..f2b2250c 100644 --- a/kfet/migrations/0033_checkoutstatement_not_count.py +++ b/kfet/migrations/0033_checkoutstatement_not_count.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0032_auto_20160822_2350")] operations = [ diff --git a/kfet/migrations/0034_auto_20160823_0206.py b/kfet/migrations/0034_auto_20160823_0206.py index 1b28e289..20ee92b0 100644 --- a/kfet/migrations/0034_auto_20160823_0206.py +++ b/kfet/migrations/0034_auto_20160823_0206.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0033_checkoutstatement_not_count")] operations = [ diff --git a/kfet/migrations/0035_auto_20160823_1505.py b/kfet/migrations/0035_auto_20160823_1505.py index e2a98ca7..f320c453 100644 --- a/kfet/migrations/0035_auto_20160823_1505.py +++ b/kfet/migrations/0035_auto_20160823_1505.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0034_auto_20160823_0206")] operations = [ diff --git a/kfet/migrations/0036_auto_20160823_1910.py b/kfet/migrations/0036_auto_20160823_1910.py index 09726e37..9f81b2ba 100644 --- a/kfet/migrations/0036_auto_20160823_1910.py +++ b/kfet/migrations/0036_auto_20160823_1910.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0035_auto_20160823_1505")] operations = [ diff --git a/kfet/migrations/0037_auto_20160826_2333.py b/kfet/migrations/0037_auto_20160826_2333.py index 6ebc921d..3e99c36c 100644 --- a/kfet/migrations/0037_auto_20160826_2333.py +++ b/kfet/migrations/0037_auto_20160826_2333.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0036_auto_20160823_1910")] operations = [ diff --git a/kfet/migrations/0038_auto_20160828_0402.py b/kfet/migrations/0038_auto_20160828_0402.py index be8d847e..599a3205 100644 --- a/kfet/migrations/0038_auto_20160828_0402.py +++ b/kfet/migrations/0038_auto_20160828_0402.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0037_auto_20160826_2333")] operations = [ diff --git a/kfet/migrations/0039_auto_20160828_0430.py b/kfet/migrations/0039_auto_20160828_0430.py index 2611d578..0b58cee4 100644 --- a/kfet/migrations/0039_auto_20160828_0430.py +++ b/kfet/migrations/0039_auto_20160828_0430.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0038_auto_20160828_0402")] operations = [ diff --git a/kfet/migrations/0040_auto_20160829_2035.py b/kfet/migrations/0040_auto_20160829_2035.py index 16bd2b36..dc1aeeab 100644 --- a/kfet/migrations/0040_auto_20160829_2035.py +++ b/kfet/migrations/0040_auto_20160829_2035.py @@ -8,7 +8,6 @@ from django.utils.timezone import utc class Migration(migrations.Migration): - dependencies = [("kfet", "0039_auto_20160828_0430")] operations = [ diff --git a/kfet/migrations/0041_auto_20160830_1502.py b/kfet/migrations/0041_auto_20160830_1502.py index 488d33ff..eab76e81 100644 --- a/kfet/migrations/0041_auto_20160830_1502.py +++ b/kfet/migrations/0041_auto_20160830_1502.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0040_auto_20160829_2035")] operations = [ diff --git a/kfet/migrations/0042_auto_20160831_0126.py b/kfet/migrations/0042_auto_20160831_0126.py index 70adbad5..297a41f6 100644 --- a/kfet/migrations/0042_auto_20160831_0126.py +++ b/kfet/migrations/0042_auto_20160831_0126.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0041_auto_20160830_1502")] operations = [ diff --git a/kfet/migrations/0043_auto_20160901_0046.py b/kfet/migrations/0043_auto_20160901_0046.py index b5132335..f0a08184 100644 --- a/kfet/migrations/0043_auto_20160901_0046.py +++ b/kfet/migrations/0043_auto_20160901_0046.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0042_auto_20160831_0126")] operations = [ diff --git a/kfet/migrations/0044_auto_20160901_1614.py b/kfet/migrations/0044_auto_20160901_1614.py index f81ae828..69f3dc21 100644 --- a/kfet/migrations/0044_auto_20160901_1614.py +++ b/kfet/migrations/0044_auto_20160901_1614.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0043_auto_20160901_0046")] operations = [ diff --git a/kfet/migrations/0045_auto_20160905_0705.py b/kfet/migrations/0045_auto_20160905_0705.py index 0f98c56a..7a17cbb9 100644 --- a/kfet/migrations/0045_auto_20160905_0705.py +++ b/kfet/migrations/0045_auto_20160905_0705.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0044_auto_20160901_1614")] operations = [ diff --git a/kfet/migrations/0046_account_created_at.py b/kfet/migrations/0046_account_created_at.py index a0274432..d62c6bc2 100644 --- a/kfet/migrations/0046_account_created_at.py +++ b/kfet/migrations/0046_account_created_at.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0045_auto_20160905_0705")] operations = [ diff --git a/kfet/migrations/0047_auto_20170104_1528.py b/kfet/migrations/0047_auto_20170104_1528.py index d391e1f4..11a689e1 100644 --- a/kfet/migrations/0047_auto_20170104_1528.py +++ b/kfet/migrations/0047_auto_20170104_1528.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0046_account_created_at")] operations = [ diff --git a/kfet/migrations/0048_article_hidden.py b/kfet/migrations/0048_article_hidden.py index d4d89022..b85b54bf 100644 --- a/kfet/migrations/0048_article_hidden.py +++ b/kfet/migrations/0048_article_hidden.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0047_auto_20170104_1528")] operations = [ diff --git a/kfet/migrations/0048_default_datetime.py b/kfet/migrations/0048_default_datetime.py index d5408c59..0257e2eb 100644 --- a/kfet/migrations/0048_default_datetime.py +++ b/kfet/migrations/0048_default_datetime.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0047_auto_20170104_1528")] operations = [ diff --git a/kfet/migrations/0049_merge.py b/kfet/migrations/0049_merge.py index e9bcb47a..da38d232 100644 --- a/kfet/migrations/0049_merge.py +++ b/kfet/migrations/0049_merge.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0048_article_hidden"), ("kfet", "0048_default_datetime")] operations = [] diff --git a/kfet/migrations/0050_remove_checkout.py b/kfet/migrations/0050_remove_checkout.py index 8cfd370a..871f864b 100644 --- a/kfet/migrations/0050_remove_checkout.py +++ b/kfet/migrations/0050_remove_checkout.py @@ -19,7 +19,6 @@ def revert_operation_types(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("kfet", "0049_merge")] operations = [ diff --git a/kfet/migrations/0051_verbose_names.py b/kfet/migrations/0051_verbose_names.py index 9892af71..db1abe11 100644 --- a/kfet/migrations/0051_verbose_names.py +++ b/kfet/migrations/0051_verbose_names.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0050_remove_checkout")] operations = [ diff --git a/kfet/migrations/0052_category_addcost.py b/kfet/migrations/0052_category_addcost.py index 8a8da85f..39f0e6eb 100644 --- a/kfet/migrations/0052_category_addcost.py +++ b/kfet/migrations/0052_category_addcost.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0051_verbose_names")] operations = [ diff --git a/kfet/migrations/0053_created_at.py b/kfet/migrations/0053_created_at.py index 6da14568..c0e8e7c2 100644 --- a/kfet/migrations/0053_created_at.py +++ b/kfet/migrations/0053_created_at.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0052_category_addcost")] operations = [ diff --git a/kfet/migrations/0054_delete_settings.py b/kfet/migrations/0054_delete_settings.py index 7294c8bf..c3d6ece5 100644 --- a/kfet/migrations/0054_delete_settings.py +++ b/kfet/migrations/0054_delete_settings.py @@ -40,7 +40,6 @@ def adapt_settings(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("kfet", "0053_created_at"), ("djconfig", "0001_initial")] operations = [ diff --git a/kfet/migrations/0054_update_promos.py b/kfet/migrations/0054_update_promos.py index 0f86779b..95ea78cd 100644 --- a/kfet/migrations/0054_update_promos.py +++ b/kfet/migrations/0054_update_promos.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0053_created_at")] operations = [ diff --git a/kfet/migrations/0055_move_permissions.py b/kfet/migrations/0055_move_permissions.py index 11cc9083..a6d053a7 100644 --- a/kfet/migrations/0055_move_permissions.py +++ b/kfet/migrations/0055_move_permissions.py @@ -54,7 +54,6 @@ def forwards_perms(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ("kfet", "0054_delete_settings"), ("contenttypes", "0001_initial"), diff --git a/kfet/migrations/0056_change_account_meta.py b/kfet/migrations/0056_change_account_meta.py index 27e51417..0224ae2b 100644 --- a/kfet/migrations/0056_change_account_meta.py +++ b/kfet/migrations/0056_change_account_meta.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0055_move_permissions")] operations = [ diff --git a/kfet/migrations/0057_merge.py b/kfet/migrations/0057_merge.py index 456bbeb0..98fa5b27 100644 --- a/kfet/migrations/0057_merge.py +++ b/kfet/migrations/0057_merge.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("kfet", "0056_change_account_meta"), ("kfet", "0054_update_promos"), diff --git a/kfet/migrations/0058_delete_genericteamtoken.py b/kfet/migrations/0058_delete_genericteamtoken.py index 3b3216e9..e82fcd63 100644 --- a/kfet/migrations/0058_delete_genericteamtoken.py +++ b/kfet/migrations/0058_delete_genericteamtoken.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0057_merge")] operations = [migrations.DeleteModel(name="GenericTeamToken")] diff --git a/kfet/migrations/0059_create_generic.py b/kfet/migrations/0059_create_generic.py index 7408a300..1cac19a6 100644 --- a/kfet/migrations/0059_create_generic.py +++ b/kfet/migrations/0059_create_generic.py @@ -30,7 +30,6 @@ def setup_kfet_generic_user(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("kfet", "0058_delete_genericteamtoken")] operations = [migrations.RunPython(setup_kfet_generic_user)] diff --git a/kfet/migrations/0060_amend_supplier.py b/kfet/migrations/0060_amend_supplier.py index 0a56640d..8694a0fc 100644 --- a/kfet/migrations/0060_amend_supplier.py +++ b/kfet/migrations/0060_amend_supplier.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0059_create_generic")] operations = [ diff --git a/kfet/migrations/0061_add_perms_config.py b/kfet/migrations/0061_add_perms_config.py index 7d10da31..2aa3fe7d 100644 --- a/kfet/migrations/0061_add_perms_config.py +++ b/kfet/migrations/0061_add_perms_config.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0060_amend_supplier")] operations = [ diff --git a/kfet/migrations/0063_promo.py b/kfet/migrations/0063_promo.py index de04573a..6b12195e 100644 --- a/kfet/migrations/0063_promo.py +++ b/kfet/migrations/0063_promo.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0062_delete_globalpermissions")] operations = [ diff --git a/kfet/migrations/0064_promo_2018.py b/kfet/migrations/0064_promo_2018.py index 7fe5e160..99c74687 100644 --- a/kfet/migrations/0064_promo_2018.py +++ b/kfet/migrations/0064_promo_2018.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0063_promo")] operations = [ diff --git a/kfet/migrations/0065_choices_promo.py b/kfet/migrations/0065_choices_promo.py index dd234c66..d0fcf3c3 100644 --- a/kfet/migrations/0065_choices_promo.py +++ b/kfet/migrations/0065_choices_promo.py @@ -6,7 +6,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0064_promo_2018")] operations = [ diff --git a/kfet/migrations/0066_on_delete_actions.py b/kfet/migrations/0066_on_delete_actions.py index e2d635e2..6ca25529 100644 --- a/kfet/migrations/0066_on_delete_actions.py +++ b/kfet/migrations/0066_on_delete_actions.py @@ -5,7 +5,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0065_choices_promo")] operations = [ diff --git a/kfet/migrations/0067_deleted_account.py b/kfet/migrations/0067_deleted_account.py index 155034f9..8b5f9d83 100644 --- a/kfet/migrations/0067_deleted_account.py +++ b/kfet/migrations/0067_deleted_account.py @@ -26,7 +26,6 @@ def setup_kfet_deleted_user(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("kfet", "0066_on_delete_actions")] operations = [migrations.RunPython(setup_kfet_deleted_user)] diff --git a/kfet/migrations/0068_on_delete_account.py b/kfet/migrations/0068_on_delete_account.py index b8cfdb76..a1cbcaf0 100644 --- a/kfet/migrations/0068_on_delete_account.py +++ b/kfet/migrations/0068_on_delete_account.py @@ -6,7 +6,6 @@ import kfet.models class Migration(migrations.Migration): - dependencies = [("kfet", "0067_deleted_account")] operations = [ diff --git a/kfet/migrations/0069_happy_new_year.py b/kfet/migrations/0069_happy_new_year.py index bd380c47..2a06a9bd 100644 --- a/kfet/migrations/0069_happy_new_year.py +++ b/kfet/migrations/0069_happy_new_year.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [("kfet", "0068_on_delete_account")] operations = [ diff --git a/kfet/migrations/0070_articlecategory_has_reduction.py b/kfet/migrations/0070_articlecategory_has_reduction.py index c657dfdd..23814d52 100644 --- a/kfet/migrations/0070_articlecategory_has_reduction.py +++ b/kfet/migrations/0070_articlecategory_has_reduction.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("kfet", "0069_happy_new_year"), ] diff --git a/kfet/migrations/0071_promo_2020.py b/kfet/migrations/0071_promo_2020.py index 910c12cf..4ff4af92 100644 --- a/kfet/migrations/0071_promo_2020.py +++ b/kfet/migrations/0071_promo_2020.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("kfet", "0070_articlecategory_has_reduction"), ] diff --git a/kfet/migrations/0072_auto_20200901_1526.py b/kfet/migrations/0072_auto_20200901_1526.py index 2da78c1b..6dded31d 100644 --- a/kfet/migrations/0072_auto_20200901_1526.py +++ b/kfet/migrations/0072_auto_20200901_1526.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("kfet", "0071_promo_2020"), ] diff --git a/kfet/migrations/0073_2021.py b/kfet/migrations/0073_2021.py index 4470b4fb..9b3324c3 100644 --- a/kfet/migrations/0073_2021.py +++ b/kfet/migrations/0073_2021.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("kfet", "0072_auto_20200901_1526"), ] diff --git a/kfet/migrations/0074_auto_20210219_1337.py b/kfet/migrations/0074_auto_20210219_1337.py index 7b4127d8..ea684d06 100644 --- a/kfet/migrations/0074_auto_20210219_1337.py +++ b/kfet/migrations/0074_auto_20210219_1337.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("kfet", "0073_2021"), ] diff --git a/kfet/migrations/0075_remove_accountnegative_balance_offset.py b/kfet/migrations/0075_remove_accountnegative_balance_offset.py index bf06e9ae..80122989 100644 --- a/kfet/migrations/0075_remove_accountnegative_balance_offset.py +++ b/kfet/migrations/0075_remove_accountnegative_balance_offset.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("kfet", "0074_auto_20210219_1337"), ] diff --git a/kfet/migrations/0076_unfreeze_accounts.py b/kfet/migrations/0076_unfreeze_accounts.py index 23901d99..d8ecc86b 100644 --- a/kfet/migrations/0076_unfreeze_accounts.py +++ b/kfet/migrations/0076_unfreeze_accounts.py @@ -9,7 +9,6 @@ def unfreeze_accounts(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ("kfet", "0075_remove_accountnegative_balance_offset"), ] diff --git a/kfet/migrations/0077_delete_frozen_permission.py b/kfet/migrations/0077_delete_frozen_permission.py index 8ac297fa..c51426bb 100644 --- a/kfet/migrations/0077_delete_frozen_permission.py +++ b/kfet/migrations/0077_delete_frozen_permission.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("kfet", "0076_unfreeze_accounts"), ] diff --git a/kfet/migrations/0078_negative_end.py b/kfet/migrations/0078_negative_end.py index 121a975e..d99c2a04 100644 --- a/kfet/migrations/0078_negative_end.py +++ b/kfet/migrations/0078_negative_end.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("kfet", "0077_delete_frozen_permission"), ] diff --git a/kfet/migrations/0079_auto_20210627_0022.py b/kfet/migrations/0079_auto_20210627_0022.py index 52900ed0..6e563650 100644 --- a/kfet/migrations/0079_auto_20210627_0022.py +++ b/kfet/migrations/0079_auto_20210627_0022.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("kfet", "0078_negative_end"), ] diff --git a/kfet/migrations/0080_accountnegative_last_rappel.py b/kfet/migrations/0080_accountnegative_last_rappel.py index 9dc82bea..61932937 100644 --- a/kfet/migrations/0080_accountnegative_last_rappel.py +++ b/kfet/migrations/0080_accountnegative_last_rappel.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("kfet", "0079_auto_20210627_0022"), ] diff --git a/kfet/models.py b/kfet/models.py index a71b53cd..d2ff42f9 100644 --- a/kfet/models.py +++ b/kfet/models.py @@ -189,7 +189,6 @@ class Account(models.Model): # - Enregistre User, CofProfile à partir de "data" # - Enregistre Account def save(self, data={}, *args, **kwargs): - if self.pk and data: # Account update diff --git a/kfet/views.py b/kfet/views.py index 15bde0f7..4ef2692e 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -144,7 +144,6 @@ def account_is_validandfree_ajax(request): @teamkfet_required @kfet_password_auth def account_create(request): - # Enregistrement if request.method == "POST": trigramme_form = AccountTriForm(request.POST) @@ -978,7 +977,7 @@ def kpsul_update_addcost(request): data = {"errors": []} if not addcost_form.is_valid(): - for (field, errors) in addcost_form.errors.items(): + for field, errors in addcost_form.errors.items(): for error in errors: data["errors"].append({"code": f"invalid_{field}", "message": error}) @@ -1720,7 +1719,7 @@ def perform_transfers(request): try: if not transfer_formset.is_valid(): for form_errors in transfer_formset.errors: - for (field, errors) in form_errors.items(): + for field, errors in form_errors.items(): if field == "amount": for error in errors: data["errors"].append({"code": "amount", "message": error}) @@ -1954,7 +1953,6 @@ class InventoryList(ListView): @teamkfet_required @kfet_password_auth def inventory_create(request): - articles = Article.objects.select_related("category").order_by( "-is_sold", "category__name", "name" ) @@ -1983,7 +1981,6 @@ def inventory_create(request): ) elif formset.is_valid(): with transaction.atomic(): - articles = Article.objects.select_for_update() inventory = Inventory() inventory.by = request.user.profile.account_kfet @@ -2388,6 +2385,7 @@ class SupplierUpdate(SuccessMessageMixin, UpdateView): # Statistics # ========== + # --------------- # Vues génériques # --------------- diff --git a/petitscours/views.py b/petitscours/views.py index 81504e15..61230239 100644 --- a/petitscours/views.py +++ b/petitscours/views.py @@ -218,7 +218,7 @@ def _traitement_post(request, demande): bccaddress = settings.MAIL_DATA["petits_cours"]["BCC"] replyto = settings.MAIL_DATA["petits_cours"]["REPLYTO"] mails_to_send = [] - for (user, (mail_object, body)) in proposed_mails: + for user, (mail_object, body) in proposed_mails: msg = mail.EmailMessage( mail_object, body,