-
Notifications
You must be signed in to change notification settings - Fork 1
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
Figure out why tune_play view doesn't update last_played field in database #58
Comments
Seems this attribute is on the m2m table Yet the object your setting it on is Tune:
That's where Python's permissiveness sometimes bites us, this should have raised an error ideally, yet it was "just ok" to do so ... Makes sense? |
1st statement starts well, but in the listcomp of the 2nd statement you switch to tunes:
You can also do this in one step, using the ORM only:
|
There is another issue to address: pdb cont'd
You should use
|
Everything looks good in this view but the last_played field remains null
The text was updated successfully, but these errors were encountered: