[FIX] Sorting the list of tld's in alphabetical order instead of dumping the database in the page
This commit is contained in:
parent
f298842d8f
commit
d2b018cf3f
|
@ -12,7 +12,7 @@ class Index(ListView):
|
||||||
Tutorial for this is on https://learndjango.com/tutorials/django-search-tutorial
|
Tutorial for this is on https://learndjango.com/tutorials/django-search-tutorial
|
||||||
When writing more optimized search things, might be good reference
|
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
|
return object_list
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue