mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Replaced print statement by print function (forward compatibility syntax).
This commit is contained in:
parent
fe43ad5707
commit
596cb9c7e2
61 changed files with 310 additions and 310 deletions
|
@ -55,7 +55,7 @@ We'd like to be able to do things like this in our models (we assume the
|
|||
``hand`` attribute on the model is an instance of ``Hand``)::
|
||||
|
||||
example = MyModel.objects.get(pk=1)
|
||||
print example.hand.north
|
||||
print(example.hand.north)
|
||||
|
||||
new_hand = Hand(north, east, south, west)
|
||||
example.hand = new_hand
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue