the difference between get and filter in a Django ORM:
It was previously assumed that the difference between get and filter was simply that filter returned more than one record, while get only supported a single recording until the related_name Attribute to find that the difference is much more than that, the most essential difference is
the value returned by filter is a queryset object,
get The return value is a defined model
Use Get The returned results go to access the child Table object successfully, while using the Filter It's going to go wrong.
650) this.width=650, "width=" 554 "height=" "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ( "/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
is because the Queryset object does not have a realtaed_name property and cannot be traced back to the child table
The difference between get and filter in Django ORM