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

Unread list returning NoneType after switching from sqlite3 to PostgreSQL 12 in Django-notifcations #271

Closed
kz168 opened this issue Dec 16, 2019 · 1 comment

Comments

@kz168
Copy link

kz168 commented Dec 16, 2019

I have changed my project db from sqlite3 to PostgreSQL 12 and now I can't seem to find my notifications on /api/unread_list/?max=20 Can you tell me what exactly am I missing here.

The Error is following,

File "/usr/local/lib/python3.7/site-packages/notifications/views.py", line 173, in live_unread_notification_list struct['actor'] = str(notification.actor) TypeError: str returned non-string (type NoneType)

@AlvaroLQueiroz
Copy link
Contributor

Are you sure your DB migration occurred well? Have you fixed It and remember how?

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