Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Exclude property interferes with other libraries #148

Open
guymaor86 opened this issue Mar 12, 2018 · 0 comments
Open

Exclude property interferes with other libraries #148

guymaor86 opened this issue Mar 12, 2018 · 0 comments

Comments

@guymaor86
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant