Browse Source

Admin: řaď problémy podle času vytvoření

(požadováno na schůzce)
Je otázka, jestli je to vhodné i pro zadané problémy
remotes/origin/imagekit
Matěj Kocián 9 years ago
parent
commit
36f308ed32
  1. 1
      seminar/admin.py

1
seminar/admin.py

@ -310,6 +310,7 @@ class ProblemAdmin(VersionAdmin):
list_select_related = True list_select_related = True
search_fields = ['nazev', 'text_zadani', 'text_reseni', 'text_org'] search_fields = ['nazev', 'text_zadani', 'text_reseni', 'text_org']
view_on_site = Problem.verejne_url view_on_site = Problem.verejne_url
ordering = ['-timestamp']
def get_queryset(self, request): def get_queryset(self, request):
qs = super(ProblemAdmin, self).get_queryset(request) qs = super(ProblemAdmin, self).get_queryset(request)

Loading…
Cancel
Save