Ticket #1815: docs2.diff
File docs2.diff, 3.6 KB (added by , 18 years ago) |
---|
-
tutorial03.txt
112 112 `Python documentation`_. Also, the O'Reilly book "Mastering Regular 113 113 Expressions" by Jeffrey Friedl is fantastic. 114 114 115 Finally, a performance note: These regular expressions are compiled the first115 Finally, a performance note: these regular expressions are compiled the first 116 116 time the URLconf module is loaded. They're super fast. 117 117 118 118 .. _Wikipedia's entry: http://en.wikipedia.org/wiki/Regular_expression -
db-api.txt
1085 1085 It works backwards, too. To refer to a "reverse" relationship, just use the 1086 1086 lowercase name of the model. 1087 1087 1088 This example retrieves all ``Blog`` objects wh ohave at least one ``Entry``1088 This example retrieves all ``Blog`` objects which have at least one ``Entry`` 1089 1089 whose ``headline`` contains ``'Lennon'``:: 1090 1090 1091 1091 Blog.objects.filter(entry__headline__contains='Lennon') … … 1168 1168 ============================== 1169 1169 1170 1170 Keyword argument queries -- in ``filter()``, etc. -- are "AND"ed together. If 1171 you need to execute more morecomplex queries (for example, queries with ``OR``1171 you need to execute more complex queries (for example, queries with ``OR`` 1172 1172 statements), you can use ``Q`` objects. 1173 1173 1174 1174 A ``Q`` object (``django.db.models.Q``) is an object used to encapsulate a … … 1534 1534 1535 1535 Note that in the case of identical date values, these methods will use the ID 1536 1536 as a fallback check. This guarantees that no records are skipped or duplicated. 1537 For a full example, see the `lookup API sample model _`.1537 For a full example, see the `lookup API sample model`_. 1538 1538 1539 1539 .. _lookup API sample model: http://www.djangoproject.com/documentation/models/lookup/ 1540 1540 -
transactions.txt
122 122 else: 123 123 transaction.commit() 124 124 125 .. admonition:: An important note to users of earlier Django releases:125 .. admonition:: An important note to users of earlier Django releases: 126 126 127 127 The database ``connection.commit()`` and ``connection.rollback()`` methods 128 128 (called ``db.commit()`` and ``db.rollback()`` in 0.91 and earlier) no longer -
authentication.txt
215 215 --------------- 216 216 217 217 ``django.contrib.auth.models.AnonymousUser`` is a class that implements 218 the ``django.cont irb.auth.models.User`` interface, with these differences:218 the ``django.contrib.auth.models.User`` interface, with these differences: 219 219 220 220 * ``id`` is always ``None``. 221 221 * ``is_anonymous()`` returns ``True`` instead of ``False``. … … 437 437 Note that if your model doesn't have ``class Admin`` set when you run 438 438 ``syncdb``, the permissions won't be created. If you initialize your database 439 439 and add ``class Admin`` to models after the fact, you'll need to run 440 `` django-admin.py syncdb`` again. It will create any missing permissions for440 ``manage.py syncdb`` again. It will create any missing permissions for 441 441 all of your installed apps. 442 442 443 443 Custom permissions … … 484 484 ~~~~~~~ 485 485 486 486 ``Permission`` objects have the standard data-access methods like any other 487 `Django model`_ :487 `Django model`_. 488 488 489 489 Authentication data in templates 490 490 ================================