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
#9193 introduced a notifications editor for admins, and it works great for editing existing notifications.
However, this still doesn't allow creating new per-product notifications for other users. Fields user and product are not present in the new/edit admin form.
This can be fixed by making the fields editable, and adding them to excluded in NotificationsForm. Optionally, they could be hidden or made read only for editing existing notifications, so they appear only when a new one is being created.
There are workarounds for this issue, namely using ./manage.py shell to create a notification object manually, or editing the database contents. Then the details can be adjusted in Django Admin.
The text was updated successfully, but these errors were encountered:
#9193 introduced a notifications editor for admins, and it works great for editing existing notifications.
However, this still doesn't allow creating new per-product notifications for other users. Fields
user
andproduct
are not present in the new/edit admin form.It is caused by marking these model fields as
editable=False
. I think, the reason was to hide them from non-product-specific notification settings form.This can be fixed by making the fields editable, and adding them to excluded in
NotificationsForm
. Optionally, they could be hidden or made read only for editing existing notifications, so they appear only when a new one is being created.There are workarounds for this issue, namely using
./manage.py shell
to create a notification object manually, or editing the database contents. Then the details can be adjusted in Django Admin.The text was updated successfully, but these errors were encountered: