From 57f2a5c2608f5f2873f08b3b24d28b17b45a0a9f Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Wed, 29 May 2019 01:33:50 +0200 Subject: [PATCH] pedagogy: rename Study into StudyField --- pedagogy/models.py | 2 +- pedagogy/urls.py | 4 ++-- pedagogy/views.py | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pedagogy/models.py b/pedagogy/models.py index 40efaa59..c6a29816 100644 --- a/pedagogy/models.py +++ b/pedagogy/models.py @@ -59,7 +59,7 @@ class EducationDepartment(models.Model): pass -class Study(models.Model): +class StudyField(models.Model): """ Speciality inside an Education Department """ diff --git a/pedagogy/urls.py b/pedagogy/urls.py index a853cb7d..2a7c4990 100644 --- a/pedagogy/urls.py +++ b/pedagogy/urls.py @@ -53,10 +53,10 @@ urlpatterns = [ EducationDepartmentDeleteView.as_view(), name="department_delete", ), - url(r"^study/create$", StudyCreateView.as_view(), name="study_create"), + url(r"^study/create$", StudyFieldCreateView.as_view(), name="study_create"), url( r"^study/(?P[0-9]+)/delete$", - StudyDeleteView.as_view(), + StudyFieldDeleteView.as_view(), name="study_delete", ), ] diff --git a/pedagogy/views.py b/pedagogy/views.py index 7e15e3c3..41cd6c08 100644 --- a/pedagogy/views.py +++ b/pedagogy/views.py @@ -108,17 +108,17 @@ class EducationDepartmentDeleteView(DeleteView): pass -class StudyCreateView(CreateView): +class StudyFieldCreateView(CreateView): """ - Add a new Study (Privileged) + Add a new Study Field (Privileged) """ pass -class StudyDeleteView(DeleteView): +class StudyFieldDeleteView(DeleteView): """ - Allow to delete an Study (Privileged) + Allow to delete an Study Field (Privileged) """ pass