OkunaOrg / okuna-api

🤖 The Okuna Social Network API
https://okuna.io
MIT License
240 stars 78 forks source link

"Invalid model - model not available" on /api/notifications/ #713

Open frankvolkel opened 4 years ago

frankvolkel commented 4 years ago

I'm running okuna-api 0.0.67 and okuna-app 0.0.66.

Calls to /api/notifications with certain types results in a ["Invalid model - model not available."] response:

okuna-api    | 2020-05-18 11:08:29,587 django.request WARNING  Bad Request: /api/notifications/
okuna-api    | 2020-05-18 11:08:29,588 django.server WARNING  "GET /api/notifications/?types=PR,PCRA,PC,PCR,PUM,PCUM,CC,F,CNP,UNP& HTTP/1.1" 400 40

Calls with less types return fine:

okuna-api    | 2020-05-18 10:53:13,301 django.server INFO     "GET /api/notifications/?types=CR,CI& HTTP/1.1" 200 2
lifenautjoe commented 4 years ago

Hi Frank, have you ran the newer migrations?

python manage.py migrate