Skip to content

Commit

Permalink
Add changes to styling and template according to new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
“OMosimege” committed Jul 5, 2024
1 parent b9830d5 commit 4024d26
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 185 deletions.
8 changes: 4 additions & 4 deletions app/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def projects(request):
projects = (
Project.objects.select_related("institution")
.prefetch_related("subjects", "languages")
.all()
.order_by("name")
)

if subject_id:
Expand All @@ -71,9 +71,9 @@ def projects(request):
if institution_id:
projects = projects.filter(institution__id=institution_id)

subjects = Subject.objects.all()
languages = Language.objects.all()
institutions = Institution.objects.all()
subjects = Subject.objects.order_by("name")
languages = Language.objects.order_by("name")
institutions = Institution.objects.order_by("name")

project_data = []
for project in projects:
Expand Down
Loading

0 comments on commit 4024d26

Please sign in to comment.