pedagogy: rename Study into StudyField

This commit is contained in:
Antoine Bartuccio 2019-05-29 01:33:50 +02:00
parent 36831b4f4a
commit 57f2a5c260
Signed by: klmp200
GPG Key ID: E7245548C53F904B
3 changed files with 7 additions and 7 deletions

View File

@ -59,7 +59,7 @@ class EducationDepartment(models.Model):
pass
class Study(models.Model):
class StudyField(models.Model):
"""
Speciality inside an Education Department
"""

View File

@ -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<study_id>[0-9]+)/delete$",
StudyDeleteView.as_view(),
StudyFieldDeleteView.as_view(),
name="study_delete",
),
]

View File

@ -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