Changeset 7130
- Timestamp:
- 02/18/08 17:43:12 (7 months ago)
- Files:
-
- django/trunk/docs/db-api.txt (modified) (1 diff)
- django/trunk/docs/serialization.txt (modified) (1 diff)
- django/trunk/docs/templates_python.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/db-api.txt
r6405 r7130 1606 1606 print e.blog # Doesn't hit the database; uses cached version. 1607 1607 1608 ``select_related()`` is documented in the "QuerySet methods that return new 1609 QuerySets" section above. 1608 ``select_related()`` is documented in the `QuerySet methods that return new QuerySets`_ section above. 1610 1609 1611 1610 Backward django/trunk/docs/serialization.txt
r6787 r7130 89 89 for deserialized_object in serializers.deserialize("xml", data): 90 90 if object_should_be_saved(deserialized_object): 91 obj.save()91 deserialized_object.save() 92 92 93 93 In other words, the usual use is to examine the deserialized objects to make django/trunk/docs/templates_python.txt
r7020 r7130 396 396 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 397 397 398 **New in Django development version** 399 398 400 If ``TEMPLATE_CONTEXT_PROCESSORS`` contains this processor, every 399 401 ``RequestContext`` will contain a variable ``MEDIA_URL``, providing the … … 1015 1017 1016 1018 def render(self, context): 1017 t = template.load _template('small_fragment.html')1019 t = template.loader.get_template('small_fragment.html') 1018 1020 return t.render(Context({'var': obj}, autoescape=context.autoescape)) 1019 1021
