django-db-constraints
django-db-constraints copied to clipboard
Unable to migrate: "TypeError: reload_model() got an unexpected keyword argument 'delay'"
Hi, I am unable to migrate due to reload_model
called with incorrect arguments, specifically delay
is passed in but this is not in the function parameter list.
In AlterConstraints
:
def state_forwards(self, app_label, state):
model_state = state.models[app_label, self.name_lower]
model_state.options[self.option_name] = self.db_constraints
state.reload_model(app_label, self.name_lower, delay=True)
Getting error: "TypeError: reload_model() got an unexpected keyword argument 'delay'".
Currently on:
- Django (1.10.8)
- django-db-constraints (0.3.0)
If its just a versioning issue can you tell me which version of Django to use? Thanks
Updating to Django (1.11.6) resolved the issue
Hi @reggie43
Thanks for identifying the issue & cause!