From dc24f1017ae1b86879c7f0f1ddeee01cf6236284 Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Thu, 22 Oct 2015 08:55:42 +0200 Subject: [PATCH] zobrazit na webu -> seznam soustredeni --- seminar/admin.py | 2 +- seminar/models.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/seminar/admin.py b/seminar/admin.py index 93956adc..299e6c75 100644 --- a/seminar/admin.py +++ b/seminar/admin.py @@ -363,7 +363,7 @@ class SoustredeniAdmin(reversion.VersionAdmin): list_display = ['rocnik', 'misto', 'datum_zacatku', 'typ', 'exportovat', 'verejne'] inlines = [Soustredeni_UcastniciInline] list_filter = ['typ', 'rocnik'] - #view_on_site = Soustredeni.verejne_url + view_on_site = Soustredeni.verejne_url actions = [ make_set_action('verejne_db', True, u'Zveřejnit soustředění'), make_set_action('verejne_db', False, u'Skrýt (zneveřejnit) soustředění'), diff --git a/seminar/models.py b/seminar/models.py index 473fc0a0..1b862200 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -626,7 +626,8 @@ class Soustredeni(SeminarModelBase): verejne.boolean = True def verejne_url(self): - return reverse('seminar_soustredeni', kwargs={'pk': self.id}) + #return reverse('seminar_soustredeni', kwargs={'pk': self.id}) + return reverse('seminar_seznam_soustredeni') @python_2_unicode_compatible