Closed migue56 closed 6 years ago
When I have filters with relationships to other models, the debug show:
.../cruds_adminlte/utils.py", line 86, in get_related_class_field return objfield.rel.model AttributeError: 'ForeignKey' object has no attribute 'rel'
The function rel have been changed to remote_field, and that return can change to:
rel
remote_field
return objfield.rel.model if hasattr(objfield, 'rel') else objfield.remote_field.model
When I have filters with relationships to other models, the debug show:
The function
rel
have been changed toremote_field
, and that return can change to:return objfield.rel.model if hasattr(objfield, 'rel') else objfield.remote_field.model