mirror of
https://github.com/django/django.git
synced 2025-03-12 10:22:37 +00:00
Mark this as a python code-block
This commit is contained in:
parent
ffcfb4cdcc
commit
6b560b50b9
@ -432,7 +432,9 @@ Atom1Feed
|
|||||||
|
|
||||||
Consider a typical case, where a view might need to call a model's method
|
Consider a typical case, where a view might need to call a model's method
|
||||||
to perform some computation, before placing the model instance into the
|
to perform some computation, before placing the model instance into the
|
||||||
context, where the template might invoke the method once more::
|
context, where the template might invoke the method once more:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
# the model
|
# the model
|
||||||
class Person(models.Model):
|
class Person(models.Model):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user