Issue
i try here to change title but this not work.
but when assign object to variable change is work.
i need any one explain why it work when i assign object to variable and why not work when access it directly
Solution
That's because using the slice operator ([0]
in this case) will always execute a new query, so none of your changes will be reflected.
That is why your second example where you save the result of project[0]
works, because you are preventing the reevaluation of the queryset by saving the result first.
Answered By - Brian Destura
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.