@@ -36,15 +36,22 @@ class InlineModelFormList(InlineFieldList):
defdisplay_row_controls(self,field):
returnfield.get_pk()isnotNone
# *** bryhoyt removed def process() entirely, because I believe it was buggy
# (but worked because another part of the code had a complimentary bug)
# and I'm not sure why it was necessary anyway.
# If we want it back in, we need to fix the following bogus query:
# self.model.select().where(attr == data).execute() # `data` is not an ID, and only happened to be so because we patched it in in .contribute() below
#
# For reference:
# .process() introduced in https://github.com/flask-admin/flask-admin/commit/2845e4b28cb40b25e2bf544b327f6202dc7e5709
# Fixed, brokenly I think, in https://github.com/flask-admin/flask-admin/commit/4383eef3ce7eb01878f086928f8773adb9de79f8#diff-f87e7cd76fb9bc48c8681b24f238fb13R30
""" bryhoyt removed def process() entirely, because I believe it was buggy
(but worked because another part of the code had a complimentary bug)
and I'm not sure why it was necessary anyway.
If we want it back in, we need to fix the following bogus query:
self.model.select().where(attr == data).execute()
`data` is not an ID, and only happened to be so because we patched it
@@ -9,7 +9,8 @@ from flask_admin._compat import text_type, as_unicode
from.importwidgetsasadmin_widgets
"""
An understanding of WTForms's Custom Widgets is helpful for understanding this code: http://wtforms.simplecodes.com/docs/0.6.2/widgets.html#custom-widgets
An understanding of WTForms's Custom Widgets is helpful for understanding this code: