Skip to content
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

Initial data problem when passed "0" #15

Open
hindo opened this issue Apr 16, 2014 · 0 comments
Open

Initial data problem when passed "0" #15

hindo opened this issue Apr 16, 2014 · 0 comments

Comments

@hindo
Copy link

hindo commented Apr 16, 2014

I have found that passing "0" as form_initial_data below line will return None

fields.py:29:

field_dict['initial'] = self.form_initial_data or self.field.initial

Maybe it should be some like this:

field_dict['initial'] = self.form_initial_data if self.form_initial_data is not None else self.field.initial
mgarcian referenced this issue in A3Sec/django-remote-forms Jan 17, 2022
…erate_empty_remote_widget

Add default widget class to use them when field widget class is unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant