Ticket #20858: patch.diff

File patch.diff, 541 bytes (added by Scott Shields, 11 years ago)
  • docs/intro/tutorial02.txt

    diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
    index dd3e86d..c5c5f8f 100644
    a b representation of the output.  
    352352You can improve that by giving that method (in :file:`polls/models.py`) a few
    353353attributes, as follows::
    354354
    355     import datetime
    356     from django.utils import timezone
    357     from django.db import models
    358 
    359     from polls.models import Poll
    360 
    361355    class Poll(models.Model):
    362356        # ...
    363357        def was_published_recently(self):
Back to Top