mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
pedagogy: rename Study into StudyField
This commit is contained in:
parent
36831b4f4a
commit
57f2a5c260
@ -59,7 +59,7 @@ class EducationDepartment(models.Model):
|
||||
pass
|
||||
|
||||
|
||||
class Study(models.Model):
|
||||
class StudyField(models.Model):
|
||||
"""
|
||||
Speciality inside an Education Department
|
||||
"""
|
||||
|
@ -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",
|
||||
),
|
||||
]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user