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

Exclude property interferes with other libraries #148

@guymaor86

Description

@guymaor86

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions