Commit 78632849 by Tom Christie

Comment against model_field.null 1.98 behavior

parent 8db63671
...@@ -233,6 +233,9 @@ def get_relation_kwargs(field_name, relation_info): ...@@ -233,6 +233,9 @@ def get_relation_kwargs(field_name, relation_info):
# No further keyword arguments are valid. # No further keyword arguments are valid.
return kwargs return kwargs
# Currently required for 1.9 master behavior,
# may be able to remove this with 1.9 alpha.
# See https://code.djangoproject.com/ticket/25320
null = model_field.null and not to_many null = model_field.null and not to_many
if model_field.has_default() or model_field.blank or null: if model_field.has_default() or model_field.blank or null:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment