Django

Code

Ticket #3739: queryset_all.diff

File queryset_all.diff, 0.6 kB (added by Jeff Forcier <reg@bitprophet.org>, 1 year ago)

Diff against checkout of 0.95.1

  • db/models/query.py

    old new  
    324326    # PUBLIC METHODS THAT ALTER ATTRIBUTES AND RETURN A NEW QUERYSET # 
    325327    ################################################################## 
    326328 
     329    def all(self): 
     330        "Returns the QuerySet again with no modifications - to conform to Manager interface." 
     331        return self 
     332 
    327333    def filter(self, *args, **kwargs): 
    328334        "Returns a new QuerySet instance with the args ANDed to the existing set." 
    329335        return self._filter_or_exclude(None, *args, **kwargs)