Prechádzať zdrojové kódy

Added missing request argument to example in URL dispatcher docs

Alasdair Nicol 11 rokov pred
rodič
commit
a0c58113b9
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      docs/topics/http/urls.txt

+ 1 - 1
docs/topics/http/urls.txt

@@ -412,7 +412,7 @@ For example::
     )
 
 In this example, for a request to ``/blog/2005/``, Django will call
-``blog.views.year_archive(year='2005', foo='bar')``.
+``blog.views.year_archive(request, year='2005', foo='bar')``.
 
 This technique is used in the
 :doc:`syndication framework </ref/contrib/syndication>` to pass metadata and