mirror of https://github.com/django/django.git
parent
6945f60c2b
commit
72231610b3
|
@ -1029,7 +1029,7 @@ by the context as to the current application.
|
||||||
Don't forget to put quotes around the function path or pattern name!
|
Don't forget to put quotes around the function path or pattern name!
|
||||||
|
|
||||||
.. versionchanged:: 1.5
|
.. versionchanged:: 1.5
|
||||||
The first paramater used not to be quoted, which was inconsistent with
|
The first parameter used not to be quoted, which was inconsistent with
|
||||||
other template tags. Since Django 1.5, it is evaluated according to
|
other template tags. Since Django 1.5, it is evaluated according to
|
||||||
the usual rules: it can be a quoted string or a variable that will be
|
the usual rules: it can be a quoted string or a variable that will be
|
||||||
looked up in the context.
|
looked up in the context.
|
||||||
|
|
|
@ -13,7 +13,7 @@ class Author(models.Model):
|
||||||
# treated differently than fields.
|
# treated differently than fields.
|
||||||
for k in kwargs:
|
for k in kwargs:
|
||||||
assert k in [f.attname for f in self._meta.fields], \
|
assert k in [f.attname for f in self._meta.fields], \
|
||||||
"Author.__init__ got an unexpected paramater: %s" % k
|
"Author.__init__ got an unexpected parameter: %s" % k
|
||||||
|
|
||||||
class Book(models.Model):
|
class Book(models.Model):
|
||||||
title = models.CharField(max_length=255)
|
title = models.CharField(max_length=255)
|
||||||
|
|
Loading…
Reference in New Issue