Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Oliver Walters 2019-09-29 09:04:47 +10:00
commit cfe33deb8e

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()