Skip to content

Minor refactoring of must_call_distinct#4215

Merged
lovelydinosaur merged 1 commit intomasterfrom
refactor-must-call-distinct
Jun 23, 2016
Merged

Minor refactoring of must_call_distinct#4215
lovelydinosaur merged 1 commit intomasterfrom
refactor-must-call-distinct

Conversation

@lovelydinosaur
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread rest_framework/filters.py
# Filtering against a many-to-many field requires us to
# call queryset.distinct() in order to avoid duplicate items
# in the resulting queryset.
# We try to avoid this is possible, for performance reasons.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We try to avoid this if possible, for performance reasons.

@codecov-io
Copy link
Copy Markdown

Current coverage is 91.51%

Merging #4215 into master will increase coverage by <.01%

@@             master      #4215   diff @@
==========================================
  Files            51         51          
  Lines          5537       5538     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           5067       5068     +1   
  Misses          470        470          
  Partials          0          0          

Powered by Codecov. Last updated by 90bb0c5...7c17573

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants