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
Hello Sir,
I am having trouble when I want to make a post. After I press the button 'SAVE' I get an error .
/posts/models.py", line 30, in upload_location
new_id = qs.last().id + 1
AttributeError: 'bool' object has no attribute 'last'
The text was updated successfully, but these errors were encountered:
Hello Sir,
I am having trouble when I want to make a post. After I press the button 'SAVE' I get an error .
/posts/models.py", line 30, in upload_location
new_id = qs.last().id + 1
AttributeError: 'bool' object has no attribute 'last'
The text was updated successfully, but these errors were encountered: