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
We can add the notifications to all the users by running the following code:
```python
from readthedocs.core.notifications import MESSAGE_BETA_DASHBOARD_AVAILABLE
for user in User.objects.all():
Notification.objects.add(
message_id=MESSAGE_BETA_DASHBOARD_AVAILABLE,
attached_to=user,
dismissable=True,
)
```
This will show a one-time dismissable notification to these users.
In the future (weeks, months) if we can show them another notification like this
one as a reminder, we can run the same code again.
Related readthedocs/ext-theme#183
0 commit comments