From de57c09ed0bbcb36b342742d5ca1323efc701c9d Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 28 Jan 2021 12:00:41 +0100 Subject: [PATCH 1/3] =?UTF-8?q?On=20rajoute=20les=20champs=20=C2=AB=20?= =?UTF-8?q?=C3=A9tudes=20pass=C3=A9es=20=C2=BB=20et=20=C2=AB=20exp=C3=A9ri?= =?UTF-8?q?ences=20=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fiches/migrations/0010_auto_20210128_1027.py | 23 +++++++++++++++++++ locale/en/LC_MESSAGES/django.mo | Bin 4990 -> 4990 bytes locale/en/LC_MESSAGES/django.po | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 fiches/migrations/0010_auto_20210128_1027.py diff --git a/fiches/migrations/0010_auto_20210128_1027.py b/fiches/migrations/0010_auto_20210128_1027.py new file mode 100644 index 0000000..aebea74 --- /dev/null +++ b/fiches/migrations/0010_auto_20210128_1027.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.17 on 2021-01-28 10:27 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('fiches', '0009_auto_20210128_0019'), + ] + + operations = [ + migrations.AddField( + model_name='profile', + name='experiences', + field=models.TextField(blank=True, verbose_name='expériences'), + ), + migrations.AddField( + model_name='profile', + name='past_studies', + field=models.TextField(blank=True, verbose_name='études passées'), + ), + ] diff --git a/locale/en/LC_MESSAGES/django.mo b/locale/en/LC_MESSAGES/django.mo index 52dbf54003b5997bec3217039e8fe35c77726c42..62eb4ceed6f3db918855b623c1d4f6e63307cafe 100644 GIT binary patch delta 17 ZcmeyT_D^lYYF-v&D-+Aj>v_+!0sur(2GRfk delta 17 ZcmeyT_D^lYYF-vYDv_+!0surT2F(Bf diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index dcb6207..c57ebdb 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-01-28 00:03+0000\n" -"PO-Revision-Date: 2021-02-04 21:28+0100\n" +"PO-Revision-Date: 2021-02-04 23:49+0100\n" "Last-Translator: Tom Hubrecht \n" "Language-Team: \n" "Language: en\n" From c8a6f0eaeb7e01b9172e25d366eb3f09a8258972 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 28 Jan 2021 12:07:47 +0100 Subject: [PATCH 2/3] =?UTF-8?q?On=20demande=20le=20login=20uniquement=20en?= =?UTF-8?q?=20POST,=20ce=20qui=20permet=20d'acc=C3=A9der=20=C3=A0=20la=20p?= =?UTF-8?q?age=20d'accueil=20sans=20=C3=AAtre=20connect=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fiches/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiches/views.py b/fiches/views.py index db8ea5b..2060b4f 100644 --- a/fiches/views.py +++ b/fiches/views.py @@ -116,7 +116,7 @@ class EditView(UpdateView): return reverse("fiche", args=(self.get_object().user,)) -@method_decorator(login_required, name="dispatch") +@method_decorator(login_required, name="post") class HomeView(FormView): model = Profile template_name = "fiches/home.html" From 05bced9a5ba43aa52fe16d8a41e16eba808097ea Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 4 Feb 2021 23:51:11 +0100 Subject: [PATCH 3/3] Supprime fichier en trop --- fiches/migrations/0010_auto_20210128_1027.py | 23 -------------------- 1 file changed, 23 deletions(-) delete mode 100644 fiches/migrations/0010_auto_20210128_1027.py diff --git a/fiches/migrations/0010_auto_20210128_1027.py b/fiches/migrations/0010_auto_20210128_1027.py deleted file mode 100644 index aebea74..0000000 --- a/fiches/migrations/0010_auto_20210128_1027.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 2.2.17 on 2021-01-28 10:27 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('fiches', '0009_auto_20210128_0019'), - ] - - operations = [ - migrations.AddField( - model_name='profile', - name='experiences', - field=models.TextField(blank=True, verbose_name='expériences'), - ), - migrations.AddField( - model_name='profile', - name='past_studies', - field=models.TextField(blank=True, verbose_name='études passées'), - ), - ]