Admin_url soustředění (aby mohlo být v login-baru)
This commit is contained in:
parent
99a1fd9a9f
commit
e250f1d5dc
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ class Soustredeni(SeminarModelBase):
|
||||||
#return reverse('seminar_soustredeni', kwargs={'pk': self.id})
|
#return reverse('seminar_soustredeni', kwargs={'pk': self.id})
|
||||||
return reverse('seminar_seznam_soustredeni')
|
return reverse('seminar_seznam_soustredeni')
|
||||||
|
|
||||||
|
def admin_url(self):
|
||||||
|
model_name = self.__class__.__name__.lower()
|
||||||
|
return reverse('admin:soustredeni_{}_change'.format(model_name), args=(self.id, ))
|
||||||
|
|
||||||
|
|
||||||
@reversion.register(ignore_duplicates=True)
|
@reversion.register(ignore_duplicates=True)
|
||||||
class Soustredeni_Ucastnici(SeminarModelBase):
|
class Soustredeni_Ucastnici(SeminarModelBase):
|
||||||
|
|
Loading…
Reference in a new issue