-
Notifications
You must be signed in to change notification settings - Fork 4
Form filler extra fields #348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
alexdashkov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a few comments
formidable/forms/field_builder.py
Outdated
| return field_class(**self.get_field_kwargs()) | ||
|
|
||
| if self.field_is_dict: | ||
| params = self.field.get('parameters', None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get('parameters', None) == get('parameters')
formidable/forms/field_builder.py
Outdated
| for key, classpath in extra.items(): | ||
| module_name, class_name = classpath.rsplit('.', 1) | ||
| module = importlib.import_module(module_name) | ||
| field_builder_class = getattr(module, class_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to move import part to the function in the utils (we will use it to get token in the future)
| import six | ||
|
|
||
|
|
||
| def import_object(object_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, I love this
8a723f5 to
8e7b312
Compare
* Added documentation, * Added a settings-based loading mechanism to extend the `FormFieldFactory` * Added validation mechanism for the dynamically loaded fields
4ae3af9 to
24d65b9
Compare
syldb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This context was such a pain! We should remember to be careful when updating DRF
Review
CHANGELOG.rstUpdated