pedagogy: rename TeachingDepartment into EducationDepartment

This commit is contained in:
Antoine Bartuccio 2019-05-29 01:30:23 +02:00
parent 17a375f89c
commit 36831b4f4a
Signed by: klmp200
GPG Key ID: E7245548C53F904B
3 changed files with 9 additions and 9 deletions

View File

@ -51,9 +51,9 @@ class UVCommentReport(models.Model):
pass
class TeachingDepartment(models.Model):
class EducationDepartment(models.Model):
"""
Teaching department of the school
Education department of the school
"""
pass
@ -61,7 +61,7 @@ class TeachingDepartment(models.Model):
class Study(models.Model):
"""
Speciality inside a Teaching Department
Speciality inside an Education Department
"""
pass

View File

@ -45,12 +45,12 @@ urlpatterns = [
url(r"^uv/(?P<uv_id>[0-9]+)/delete$", UVDeleteView.as_view(), name="uv_delete"),
url(
r"^department/create$",
TeachingDepartmentCreateView.as_view(),
EducationDepartmentCreateView.as_view(),
name="department_create",
),
url(
r"^department/(?P<department_id>[0-9]+)/delete$",
TeachingDepartmentDeleteView.as_view(),
EducationDepartmentDeleteView.as_view(),
name="department_delete",
),
url(r"^study/create$", StudyCreateView.as_view(), name="study_create"),

View File

@ -92,17 +92,17 @@ class UVDeleteView(DeleteView):
pass
class TeachingDepartmentCreateView(CreateView):
class EducationDepartmentCreateView(CreateView):
"""
Add a new TeachingDepartment (Privileged)
Add a new Education Department (Privileged)
"""
pass
class TeachingDepartmentDeleteView(DeleteView):
class EducationDepartmentDeleteView(DeleteView):
"""
Allow to delete an TeachingDepartment (Privileged)
Allow to delete an Education Department (Privileged)
"""
pass