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

Empty actor content type and actor object id fields in admin panel #280

Open
mrMarcosss opened this issue Mar 4, 2020 · 0 comments
Open

Comments

@mrMarcosss
Copy link

I'm using UUID as a pk for my models and when I do

order = Order.objects.get(pk='bb79ca5c-9e98-4e20-a0d2-b610df04cca7')
user = request.user
notify.send(sender=order, recipient=user, verb='blabla', level='error', carge_id='some_id', public=False)

new Notification created successfully
but when I go to the admin panel to view current object
actor_content_type and actor_object_id fields are empty and I also can't update it through django panel because of This field is required. errors.

The same happens when I try to create Notification through admin. Object created but after redirect the fields became empty

Screen Shot 2020-03-04 at 20 51 57

however in DB those fields are populated, checked it via shell and pgAdmin.
Also when I go to /inbox/notifications/ I see that object properly.

For target and action_object fields everything is working properly. The fields are shown in admin

FYI for models with pk as an Integer everything also works good.

Can you help me guys with this?

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

No branches or pull requests

2 participants