diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-01 17:00:09 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-01 17:00:09 +0100 |
commit | 511786f9ad75bd20157f3cbff1b17e48ac9734f5 (patch) | |
tree | 00521a0b13410a37632e4d8b0e1e51097f4b2a3a /pyblackbird_cc/resources/forms.py | |
parent | b8cb50d3983e4087fa54c2295cf8066c8d27b4a5 (diff) |
Logo and new navbar and new detail design
- logo in place
- new navbar - removed Joanna Lemon, etc
- tidying up the detail page, using cards and nicer titles
- better detail panel at the top of the page with a table in it
Diffstat (limited to 'pyblackbird_cc/resources/forms.py')
-rw-r--r-- | pyblackbird_cc/resources/forms.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pyblackbird_cc/resources/forms.py b/pyblackbird_cc/resources/forms.py index f4c6654..00869be 100644 --- a/pyblackbird_cc/resources/forms.py +++ b/pyblackbird_cc/resources/forms.py @@ -20,12 +20,9 @@ ALLOWED_PDFS = 20 def _create_choices_tuple() -> List[Tuple[str, str]]: - qs_lst = list(ResourceSubcategory.objects.values_list('name', flat=True)) - qs_lst.sort() - res = [] - for x in qs_lst: - res.append((x, x)) - return res + """Returns a list of tuples containing resource subcategory names.""" + return sorted(list(ResourceSubcategory.objects.values_list('name', flat=True)), key=str) + class ResourceCreateForm(forms.Form): |