Merge pull request #564 from SchrodingersGat/secondary-fix

Bug fix - secondary modals not working correctly
This commit is contained in:
Oliver 2019-09-27 21:07:32 +10:00 committed by GitHub
commit f49130862e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,7 @@ class AjaxCreateView(AjaxMixin, CreateView):
# Return the PK of the newly-created object
data['pk'] = self.object.pk
data['text'] = str(object)
data['text'] = str(self.object)
try:
data['url'] = self.object.get_absolute_url()