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
Just started using this app and I think it's great so far! I really want to switch to the API backend but doing so requires a primary key field named id. I know this is pretty standard for most django models but unfortunately not for me.
Trying to load comments through the API at the moment gives the following error:
'MyModel' object has no attribute 'id'
The problem occurs in lines 87-92 of api/frontend.py:
Hi,
Just started using this app and I think it's great so far! I really want to switch to the API backend but doing so requires a primary key field named id. I know this is pretty standard for most django models but unfortunately not for me.
Trying to load comments through the API at the moment gives the following error:
The problem occurs in lines 87-92 of api/frontend.py:
Unless I'm missing something, switching references of obj.id to obj.pk should be a simple fix.
Thanks.
The text was updated successfully, but these errors were encountered: