Django contrast filter and get the difference

GET:

  Data can only pick one, if the condition of a number of data, an exception is thrown

    There is no data, it will throw an exception

POST:

     If there is data, return QuerySet (similar may traverse an array) if there is no data to return empty (do not throw an exception)

Guess you like

Origin www.cnblogs.com/zhansheng/p/11823696.html