Skip to content

Commit

Permalink
Return None for validation type for foreign keys instead of list for …
Browse files Browse the repository at this point in the history
…now (May consider adding embedded list validation for foreign keys that are a basic lookup and only have say 30? or list items to choose from.
  • Loading branch information
oakdbca committed Aug 26, 2024
1 parent 0a0d635 commit ab159ef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion boranga/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ def get_openpyxl_data_validation_type_for_django_field(field):
models.BooleanField: "list",
models.DateField: "date",
models.DateTimeField: "date",
models.ForeignKey: "list",
}

if isinstance(field, models.CharField) and field.choices:
Expand Down

0 comments on commit ab159ef

Please sign in to comment.