Additions
* Specify `as variable_name` as final arguments to fedit tag to store the adapter HTML in the context.
Exampe: `{% fedit field my.field inline as my_editable_inline_field %} {{ my_editable_inline_field }}`
* Add `ModelAdapter` for directly editing a django model (or revision of that model).
Example: `{% fedit model instance %}`
* Add adapter tests for `ModelAdapter`
* View tests for `ModelAdapter`
* Add hook to determine type of form-widget to use for ModelField
Updates
* Allow sharing of context through session data instead of URL parameters (allows for nearly arbitrary shared context data without a length imposed)
* Auto-generation of shared-context keys with uuid if enabled
* Allow for custom formfield based on model-field type or related model type if modelfield is `ForeignKey` for `FieldAdapter` and it's subclasses.
Registered with hook `wagtail_fedit.register_field_widgets`.
* Update README
Changes
* Adapters render their own modal HTML
* Changes to how adapters work internally; added `field_required` class-attribute to determine if a model instance alone will suffice in the template-tag.
This means the view, templatetags and adapters got a relatively large-sized rework.
* Field-, Block- and ModelAdapters will now also replace similar elements if their `data-related-id` element- attribute matches
* Check for editing- instance locale in `AdapterView` and the `FEditableView`, set activate locale if exists.
* Optionally save initial `request.LANGUAGE_CODE` in adapter shared context to avoid mismatched translations before and after saves.
* keywords attribute instead of `required_kwargs`, `absolute_tokens` and `optional_kwargs`.
Allows for simpler definitions and better integration with the management command.