You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.
Hi, I'm using cleanerversion and I'm also trying to use the following library at the same time sortable2.
This library requires that their mixin be used before the ModelAdmin when inheriting.
The error I'm getting is AttributeError: can't set attribute when that library tries to set exclude to a value and this is because of cleanerverion's way of overriding the exclude property. I see that in the documentation it's implemented this way since there is no get_exclude method be overridden.
I was wondering how to fix this bug, the way I though was to check which version of django is being used and if it's later than 1.11 then override get_exclude and if not then to do the same code as being done now.
Thoughts on this?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I'm using
cleanerversion
and I'm also trying to use the following library at the same time sortable2.This library requires that their
mixin
be used before theModelAdmin
when inheriting.The error I'm getting is
AttributeError: can't set attribute
when that library tries to setexclude
to a value and this is because ofcleanerverion
's way of overriding theexclude
property. I see that in the documentation it's implemented this way since there is noget_exclude
method be overridden.I was wondering how to fix this bug, the way I though was to check which version of django is being used and if it's later than 1.11 then override
get_exclude
and if not then to do the same code as being done now.Thoughts on this?
The text was updated successfully, but these errors were encountered: