Skip to content
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

CustomFieldAdmin breaks if object_id is not integer #9

Open
hherglotz opened this issue Dec 4, 2020 · 0 comments
Open

CustomFieldAdmin breaks if object_id is not integer #9

hherglotz opened this issue Dec 4, 2020 · 0 comments

Comments

@hherglotz
Copy link

Hi,

Great project, I was looking for something like this.

Followed the steps in the Readme, however, it would break my admin view.

I debugged and found the problem:

Since Django 1.8 ids of models can be UUID, which is what I am using in my models.

This does not work with line 105 in models.py:

object_id = models.PositiveIntegerField()

Do you have any idea how this could be made agnostic to the type of the id of a model?

(I could switch to int for my ids and add another property with uuid, but others that used models with mixed id types would still run in the same issue).

Thanks for the great work!

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

No branches or pull requests

1 participant