Do adminu pridano zamereni ulohy do nezadanych problemu

This commit is contained in:
Bc. Petr Pecha 2015-09-17 22:01:53 +02:00
parent 84134f3c8f
commit f743d70e6b

View file

@ -303,7 +303,7 @@ class ProblemAdmin(reversion.VersionAdmin):
class ProblemNavrhAdmin(ProblemAdmin): class ProblemNavrhAdmin(ProblemAdmin):
list_display = ['nazev', 'typ', 'stav', 'autor', 'timestamp'] list_display = ['nazev', 'typ', 'stav', 'autor', 'timestamp']
list_filter = ['typ', 'stav', 'timestamp'] list_filter = ['typ', 'zamereni', 'timestamp', 'stav']
def get_queryset(self, request): def get_queryset(self, request):
qs = super(ProblemNavrhAdmin, self).get_queryset(request) qs = super(ProblemNavrhAdmin, self).get_queryset(request)