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
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
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?
The text was updated successfully, but these errors were encountered:
I'm using
UUID
as apk
for my models and when I donew
Notification
created successfullybut when I go to the admin panel to view current object
actor_content_type
andactor_object_id
fields are empty and I also can't update it through django panel because ofThis field is required.
errors.The same happens when I try to create Notification through admin. Object created but after redirect the fields became empty
however in DB those fields are populated, checked it via
shell
andpgAdmin
.Also when I go to
/inbox/notifications/
I see that object properly.For
target
andaction_object
fields everything is working properly. The fields are shown in adminFYI for models with
pk
as anInteger
everything also works good.Can you help me guys with this?
The text was updated successfully, but these errors were encountered: