You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see model-bakery (and mommy) doesnt mentions support for ChoiceField, so I add _position using the create_form_instance_data hook (nice!)
This is a forms field, not a db field, which might account for bakery not supporting it.
I'll also raise an issue there.
If there isnt opportunity to add support for form fields to bakery, perhaps django-admin-auto-tests should detect required form fields and mark the test as a skip or fail with a better explanation of how to implement create_form_instance_data.
The text was updated successfully, but these errors were encountered:
When trying to add tests to django-oscar, I am running into a problem with a model which uses https://github.com/django-treebeard/django-treebeard
First I need to map its slug field
Then the
test_add
failsThe
_position
feel is a required ChoiceField on the form.I see model-bakery (and mommy) doesnt mentions support for ChoiceField, so I add
_position
using thecreate_form_instance_data
hook (nice!)This is a forms field, not a db field, which might account for bakery not supporting it.
I'll also raise an issue there.
If there isnt opportunity to add support for form fields to bakery, perhaps django-admin-auto-tests should detect required form fields and mark the test as a skip or fail with a better explanation of how to implement
create_form_instance_data
.The text was updated successfully, but these errors were encountered: