Ticket #14112: 14112.diff

File 14112.diff, 11.1 KB (added by Ramiro Morales, 14 years ago)
  • docs/faq/admin.txt

    diff --git a/docs/faq/admin.txt b/docs/faq/admin.txt
    a b  
    3737How do I automatically set a field's value to the user who last edited the object in the admin?
    3838-----------------------------------------------------------------------------------------------
    3939
    40 The :class:`ModelAdmin` class provides customization hooks that allow you to transform
    41 an object as it saved, using details from the request. By extracting the current user
    42 from the request, and customizing the :meth:`ModelAdmin.save_model` hook, you can update
    43 an object to reflect the user that edited it. See :ref:`the documentation on ModelAdmin
    44 methods <model-admin-methods>` for an example.
     40The :class:`~django.contrib.admin.ModelAdmin` class provides customization hooks
     41that allow you to transform an object as it saved, using details from the
     42request. By extracting the current user from the request, and customizing the
     43:meth:`~django.contrib.admin.ModelAdmin.save_model` hook, you can update an
     44object to reflect the user that edited it. See :ref:`the documentation on
     45ModelAdmin methods <model-admin-methods>` for an example.
    4546
    4647How do I limit admin access so that objects can only be edited by the users who created them?
    4748---------------------------------------------------------------------------------------------
    4849
    49 The :class:`ModelAdmin` class also provides customization hooks that allow you to control the
    50 visibility and editability of objects in the admin. Using the same trick of extracting the
    51 user from the request, the :meth:`ModelAdmin.queryset` and :meth:`ModelAdmin.has_change_permission`
    52 can be used to control the visibility and editability of objects in the admin.
     50The :class:`~django.contrib.admin.ModelAdmin` class also provides customization
     51hooks that allow you to control the visibility and editability of objects in the
     52admin. Using the same trick of extracting the user from the request, the
     53:meth:`~django.contrib.admin.ModelAdmin.queryset` and
     54:meth:`~django.contrib.admin.ModelAdmin.has_change_permission` can be used to
     55control the visibility and editability of objects in the admin.
    5356
    5457My admin-site CSS and images showed up fine using the development server, but they're not displaying when using mod_python.
    5558---------------------------------------------------------------------------------------------------------------------------
  • docs/ref/contrib/admin/index.txt

    diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
    a b  
    77.. module:: django.contrib.admin
    88   :synopsis: Django's admin site.
    99
    10 .. currentmodule:: django.contrib.admin
    11 
    1210One of the most powerful parts of Django is the automatic admin interface. It
    1311reads metadata in your model to provide a powerful and production-ready
    1412interface that content producers can immediately use to start adding content to
     
    833831
    834832Since this is usually not what you want, Django provides a convenience wrapper
    835833to check permissions and mark the view as non-cacheable. This wrapper is
    836 :meth:`AdminSite.admin_view` (i.e.  ``self.admin_site.admin_view`` inside a
     834:meth:`AdminSite.admin_view` (i.e. ``self.admin_site.admin_view`` inside a
    837835``ModelAdmin`` instance); use it like so::
    838836
    839837    class MyModelAdmin(admin.ModelAdmin):
     
    10121010``InlineModelAdmin`` objects
    10131011============================
    10141012
     1013.. class:: InlineModelAdmin
     1014
    10151015The admin interface has the ability to edit models on the same page as a
    10161016parent model. These are called inlines. Suppose you have these two models::
    10171017
  • docs/ref/contrib/contenttypes.txt

    diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt
    a b  
    114114
    115115    Takes a set of valid :ref:`lookup arguments <field-lookups-intro>` for the
    116116    model the :class:`~django.contrib.contenttypes.models.ContentType`
    117     represents, and does :ref:`a get() lookup <get-kwargs>` on that model,
     117    represents, and does :lookup:`a get() lookup <get>` on that model,
    118118    returning the corresponding object.
    119119
    120120.. method:: models.ContentType.model_class()
     
    372372
    373373    The :class:`~django.contrib.contenttypes.generic.GenericInlineModelAdmin`
    374374    class inherits all properties from an
    375     :class:`~django.contrib.admin.options.InlineModelAdmin` class. However,
     375    :class:`~django.contrib.admin.InlineModelAdmin` class. However,
    376376    it adds a couple of its own for working with the generic relation:
    377377
    378378    .. attribute:: generic.GenericInlineModelAdmin.ct_field
  • docs/ref/contrib/gis/testing.txt

    diff --git a/docs/ref/contrib/gis/testing.txt b/docs/ref/contrib/gis/testing.txt
    a b  
    133133If ``init_spatialite-2.3.sql`` is in the same path as your project's ``manage.py``,
    134134then all you have to do is::
    135135
    136     $ python manage.py test 
     136    $ python manage.py test
    137137
    138138Settings
    139139--------
     
    166166
    167167.. note::
    168168
    169     In order to create a spatial database, the :setting:`DATABASE_USER` setting
    170     (or :setting:`TEST_DATABASE_USER`, if optionally defined on Oracle) requires
    171     elevated privileges.  When using PostGIS or MySQL, the database user 
     169    In order to create a spatial database, the :setting:`USER` setting
     170    (or :setting:`TEST_USER`, if optionally defined on Oracle) requires
     171    elevated privileges.  When using PostGIS or MySQL, the database user
    172172    must have at least the ability to create databases.  When testing on Oracle,
    173173    the user should be a superuser.
    174174
  • docs/ref/contrib/index.txt

    diff --git a/docs/ref/contrib/index.txt b/docs/ref/contrib/index.txt
    a b  
    168168ReStructured Text
    169169-----------------
    170170
    171 When using the `restructuredtext` markup filter you can define a :setting:`RESTRUCTUREDTEXT_FORMAT_SETTINGS`
    172 in your django settings to override the default writer settings. See the `restructuredtext writer settings`_ for
     171When using the ``restructuredtext`` markup filter you can define a
     172:setting:`RESTRUCTUREDTEXT_FILTER_SETTINGS` in your django settings to override
     173the default writer settings. See the `restructuredtext writer settings`_ for
    173174details on what these settings are.
    174175
    175176.. _restructuredtext writer settings: http://docutils.sourceforge.net/docs/user/config.html#html4css1-writer
  • docs/ref/django-admin.txt

    diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
    a b  
    106106Compiles .po files created with ``makemessages`` to .mo files for use with
    107107the builtin gettext support. See :ref:`topics-i18n`.
    108108
    109 Use the :djadminopt:`--locale`` option to specify the locale to process.
     109Use the :djadminopt:`--locale` option to specify the locale to process.
    110110If not provided, all locales are processed.
    111111
    112112Example usage::
  • docs/ref/models/fields.txt

    diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
    a b  
    293293will automatically create it using the field's attribute name, converting
    294294underscores to spaces. See :ref:`Verbose field names <verbose-field-names>`.
    295295
    296 .. _model-field-types:
    297 
    298296``validators``
    299297-------------------
    300298
     
    305303A list of validators to run for this field.See the :ref:`validators
    306304documentation <ref-validators>` for more information.
    307305
     306.. _model-field-types:
    308307
    309308Field types
    310309===========
  • docs/ref/models/querysets.txt

    diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
    a b  
    964964These methods do not use a cache (see :ref:`caching-and-querysets`). Rather,
    965965they query the database each time they're called.
    966966
    967 .. _get-kwargs:
    968 
    969967``get(**kwargs)``
    970968~~~~~~~~~~~~~~~~~
    971969
  • docs/ref/settings.txt

    diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
    a b  
    132132
    133133The cache backend to use. See :ref:`topics-cache`.
    134134
     135.. setting:: CACHE_MIDDLEWARE_ANONYMOUS_ONLY
     136
     137CACHE_MIDDLEWARE_ANONYMOUS_ONLY
     138-------------------------------
     139
     140Default: ``False``
     141
     142If the value of this setting is ``True``, only anonymous requests (i.e., not
     143those made by a logged-in user) will be cached.  Otherwise, the middleware
     144caches every page that doesn't have GET or POST parameters.
     145
     146If you set the value of this setting to ``True``, you should make sure you've
     147activated ``AuthenticationMiddleware``.
     148
     149See the :ref:`cache documentation <topics-cache>` for more information.
     150
    135151.. setting:: CACHE_MIDDLEWARE_KEY_PREFIX
    136152
    137153CACHE_MIDDLEWARE_KEY_PREFIX
     
    387403
    388404See :ref:`topics-testing`.
    389405
     406.. setting:: TEST_USER
     407
     408TEST_USER
     409~~~~~~~~~
     410
     411Default: ``None``
     412
     413This is an Oracle-specific setting.
     414
     415The username to use when connecting to the Oracle database that will be used
     416when running tests.
    390417
    391418.. setting:: DATABASE_ROUTERS
    392419
     
    555582isn't manually specified. Used with ``DEFAULT_CHARSET`` to construct the
    556583``Content-Type`` header.
    557584
    558 .. setting:: DEFAULT_FROM_EMAIL
     585.. setting:: DEFAULT_FILE_STORAGE
    559586
    560587DEFAULT_FILE_STORAGE
    561588--------------------
     
    565592Default file storage class to be used for any file-related operations that don't
    566593specify a particular storage system. See :ref:`topics-files`.
    567594
     595.. setting:: DEFAULT_FROM_EMAIL
     596
    568597DEFAULT_FROM_EMAIL
    569598------------------
    570599
     
    11681197the default values, see the file `django/conf/global_settings.py`_.
    11691198
    11701199.. _django/conf/global_settings.py: http://code.djangoproject.com/browser/django/trunk/django/conf/global_settings.py
     1200
     1201.. setting:: RESTRUCTUREDTEXT_FILTER_SETTINGS
     1202
     1203RESTRUCTUREDTEXT_FILTER_SETTINGS
     1204--------------------------------
     1205
     1206Default: ``{}``
     1207
     1208A dictionary containing settings for the ``restructuredtext`` markup filter from
     1209the :ref:`django.contrib.markup application <ref-contrib-markup>`. They override
     1210the default writer settings. See the Docutils restructuredtext `writer settings
     1211docs`_ for details.
     1212
     1213.. _writer settings docs: http://docutils.sourceforge.net/docs/user/config.html#html4css1-writer
     1214
    11711215.. setting:: ROOT_URLCONF
    11721216
    11731217ROOT_URLCONF
  • docs/ref/templates/api.txt

    diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
    a b  
    702702
    703703Normally, Django will load all the configuration information it needs from its
    704704own default configuration file, combined with the settings in the module given
    705 in the :setting:`DJANGO_SETTINGS_MODULE` environment variable. But if you're
     705in the :envvar:`DJANGO_SETTINGS_MODULE` environment variable. But if you're
    706706using the template system independently of the rest of Django, the environment
    707707variable approach isn't very convenient, because you probably want to configure
    708708the template system in line with the rest of your application rather than
  • docs/topics/testing.txt

    diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
    a b  
    401401---------------------
    402402
    403403Regardless of the value of the :setting:`DEBUG` setting in your configuration
    404 file, all Django tests run with :setting:`DEBUG=False`. This is to ensure that
     404file, all Django tests run with :setting:`DEBUG`\=False. This is to ensure that
    405405the observed output of your code matches what will be seen in a production
    406406setting.
    407407
Back to Top