mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Removed some unnecessary __exact operators in filters.
This commit is contained in:
parent
298a2b577f
commit
b87c59b04b
11 changed files with 17 additions and 17 deletions
|
@ -84,7 +84,7 @@ This accomplishes several things quite nicely:
|
|||
|
||||
def article_detail(request, article_id):
|
||||
try:
|
||||
a = Article.objects.get(id=article_id, sites__id__exact=get_current_site(request).id)
|
||||
a = Article.objects.get(id=article_id, sites__id=get_current_site(request).id)
|
||||
except Article.DoesNotExist:
|
||||
raise Http404
|
||||
# ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue