~ubuntu-branches/ubuntu/utopic/python-django/utopic

« back to all changes in this revision

Viewing changes to docs/ref/models/instances.txt

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2013-08-13 16:49:39 UTC
  • mfrom: (1.1.22) (4.4.28 sid)
  • Revision ID: package-import@ubuntu.com-20130813164939-ct6oweybhkuyq4tt
* New upstream security release.
  https://www.djangoproject.com/weblog/2013/aug/13/security-releases-issued/
  - Cross-site scripting (XSS) in admin interface
  - Possible XSS via is_safe_url

Show diffs side-by-side

added added

removed removed

Lines of Context:
661
661
returns the next and previous object with respect to the date field, raising
662
662
a :exc:`~django.core.exceptions.DoesNotExist` exception when appropriate.
663
663
 
664
 
Both methods accept optional keyword arguments, which should be in the format
665
 
described in :ref:`Field lookups <field-lookups>`.
 
664
Both of these methods will perform their queries using the default
 
665
manager for the model. If you need to emulate filtering used by a
 
666
custom manager, or want to perform one-off custom filtering, both
 
667
methods also accept optional keyword arguments, which should be in the
 
668
format described in :ref:`Field lookups <field-lookups>`.
666
669
 
667
670
Note that in the case of identical date values, these methods will use the
668
671
primary key as a tie-breaker. This guarantees that no records are skipped or