Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checking hasattr(self, 'fieldsets') alway returns true, and produces different effects. The hasattr(self, 'declared_fieldsets') was designed to detect whether Django injected that attribute. Amends: 5e150ea
- Loading branch information
02b71d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic in ModelAdmin is highly complex. I'm trying to see if there's a better way to do this.