Commit 4a3998cd authored by Liu Junxiao's avatar Liu Junxiao

Merge branch 'try-to-fix-huge-queries'

parents c9aeb1ba 62a74868
...@@ -2120,6 +2120,10 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -2120,6 +2120,10 @@ class BaseModelView(BaseView, ActionsMixin):
else: else:
template = self.edit_template template = self.edit_template
# TODO: Try to fix huge queries when editing foreign keys
# The form shouldn't be changed here. But somewhere it has been changed.
form = self.edit_form(obj=model)
return self.render(template, return self.render(template,
model=model, model=model,
form=form, form=form,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment