-
-
Notifications
You must be signed in to change notification settings - Fork 774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#898 Added the ability to customize classes for django admin #904
Conversation
Pull Request Test Coverage Report for Build 1518
💛 - Coveralls |
@folt the PR looks good to me but I can't see any test for a custom admin class, could you add one for that case also? |
@@ -128,13 +134,13 @@ class OAuth2ProviderSettings: | |||
|
|||
def __init__(self, user_settings=None, defaults=None, import_strings=None, mandatory=None): | |||
self.user_settings = user_settings or {} | |||
self.defaults = defaults or {} | |||
self.import_strings = import_strings or () | |||
self.defaults = defaults or DEFAULTS |
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.
why you decided to pass DEFAULTS if we're not passing anything? This looks legit to me, tho I am wondering why it was {} and not DEFAULTS before
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.
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.
makes sense, thanks!
A good idea. I will add PR for this case |
Fixes #
Description of the Change
#898 Added the ability to customize classes for django admin
Checklist
CHANGELOG.md
updated (only for user relevant changes)AUTHORS