flask-mongoengine icon indicating copy to clipboard operation
flask-mongoengine copied to clipboard

Add Support for CachedReferenceField

Open ScriptProdigy opened this issue 8 years ago • 3 comments
trafficstars

I am using Flask-Admin on a project and recently changed some of my ReferenceField's to CachedReferenceField's in order to save myself some execution time on lookups, however this introduced a new issue where Flask-Admin no longer provides input for the CachedReferenceField's on the creation of objects. I've narrowed the problem down to flask-mongoengine wtf forms not supporting them.

Any assistance in getting my project to support them would be greatly appreciated!

ScriptProdigy avatar Mar 01 '17 16:03 ScriptProdigy

CachedReferenceField in MongoEngine docs http://docs.mongoengine.org/apireference.html#mongoengine.fields.CachedReferenceField

ScriptProdigy avatar Mar 01 '17 18:03 ScriptProdigy

Still a thing 3 years later :(

ScriptProdigy avatar Mar 11 '20 18:03 ScriptProdigy

Hi @ScriptProdigy , excuse for long reply. I am currently rewriting complete engine, and expect to implement CachedReferenceField there. But at the same time I looked at flask-mongoengine code, that are used in flask-admin, and it is outdated. they use pinned version, so our side changes will not work there.

More over the code there was not updated for.... Years... As well some time ago here....

I keep in mind an idea to integrate flask-admin from our side, but it will not happen very soon, unless somebody will want to start adapt their contribs here, with new generation engine.

insspb avatar Jul 28 '22 02:07 insspb