inonit / django-chemtrails

Graphing Django
MIT License
10 stars 1 forks source link

AttributeError when mapping certain relationships using custom User model #27

Closed rhblind closed 7 years ago

rhblind commented 7 years ago

Accessing field.target_field property raises error when using a custom user model. Cannot look up intermediary model on auth.User.group.

rhblind commented 7 years ago

Added temporary workaround where we inspect the field.target_field property for None values before accessing it. Causes target_field to be set to an empty string when encountering issue.