[FIX] Sorting the list of tld's in alphabetical order instead of dumping the database in the page

This commit is contained in:
Arnold Dechamps 2024-05-18 01:57:39 +02:00
parent f298842d8f
commit d2b018cf3f
No known key found for this signature in database
GPG key ID: AE66543374E41C89

View file

@ -12,7 +12,7 @@ class Index(ListView):
Tutorial for this is on https://learndjango.com/tutorials/django-search-tutorial
When writing more optimized search things, might be good reference
"""
object_list = TLD.objects.all()
object_list = TLD.objects.all().order_by('tld')
return object_list