Skip to content

Initial data problem when passed "0" #15

@hindo

Description

@hindo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions