mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-27 21:43:58 +00:00
Fixes get_absolute_url() methods on FormEntry and FormWizardEntry models, so that 'View on site' links work from the django admin
This commit is contained in:
parent
be9eeffdf7
commit
535f5d31e3
1 changed files with 3 additions and 2 deletions
|
|
@ -308,7 +308,8 @@ class FormWizardEntry(models.Model):
|
|||
|
||||
:return string:
|
||||
"""
|
||||
return reverse('fobi.form_wizard', kwargs={'slug': self.slug})
|
||||
return reverse('fobi.view_form_wizard_entry',
|
||||
kwargs={'slug': self.slug})
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
|
|
@ -383,7 +384,7 @@ class FormEntry(models.Model):
|
|||
|
||||
:return string:
|
||||
"""
|
||||
return reverse('fobi.form_entry', kwargs={'slug': self.slug})
|
||||
return reverse('fobi.view_form_entry', kwargs={'slug': self.slug})
|
||||
|
||||
|
||||
class FormWizardFormEntry(models.Model):
|
||||
|
|
|
|||
Loading…
Reference in a new issue