Ticket #14000: 14000_1.diff

File 14000_1.diff, 31.4 KB (added by Richard Barran, 14 years ago)

First stab at removing "versionadded:: 1.0"

  • docs/howto/custom-model-fields.txt

     
    44Writing custom model fields
    55===========================
    66
    7 .. versionadded:: 1.0
    87.. currentmodule:: django.db.models
    98
    109Introduction
  • docs/howto/custom-template-tags.txt

     
    157157Filters and auto-escaping
    158158~~~~~~~~~~~~~~~~~~~~~~~~~
    159159
    160 .. versionadded:: 1.0
    161 
    162160When writing a custom filter, give some thought to how the filter will interact
    163161with Django's auto-escaping behavior. Note that three types of strings can be
    164162passed around inside the template code:
     
    428426Auto-escaping considerations
    429427~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    430428
    431 .. versionadded:: 1.0
    432 
    433429The output from template tags is **not** automatically run through the
    434430auto-escaping filters. However, there are still a couple of things you should
    435431keep in mind when writing a template tag.
  • docs/howto/custom-management-commands.txt

     
    44Writing custom django-admin commands
    55====================================
    66
    7 .. versionadded:: 1.0
    8 
    97Applications can register their own actions with ``manage.py``. For example,
    108you might want to add a ``manage.py`` action for a Django app that you're
    119distributing. In this document, we will be building a custom ``closepoll``
  • docs/ref/models/querysets.txt

     
    307307
    308308.. method:: reverse()
    309309
    310 .. versionadded:: 1.0
    311 
    312310Use the ``reverse()`` method to reverse the order in which a queryset's
    313311elements are returned. Calling ``reverse()`` a second time restores the
    314312ordering back to the normal direction.
     
    465463
    466464.. method:: values_list(*fields)
    467465
    468 .. versionadded:: 1.0
    469 
    470466This is similar to ``values()`` except that instead of returning dictionaries,
    471467it returns tuples when iterated over. Each tuple contains the value from the
    472468respective field passed into the ``values_list()`` call -- so the first item is
     
    531527
    532528.. method:: none()
    533529
    534 .. versionadded:: 1.0
    535 
    536530Returns an ``EmptyQuerySet`` -- a ``QuerySet`` that always evaluates to
    537531an empty list. This can be used in cases where you know that you should
    538532return an empty result set and your caller is expecting a ``QuerySet``
     
    548542
    549543.. method:: all()
    550544
    551 .. versionadded:: 1.0
    552 
    553545Returns a ''copy'' of the current ``QuerySet`` (or ``QuerySet`` subclass you
    554546pass in). This can be useful in some situations where you might want to pass
    555547in either a model manager or a ``QuerySet`` and do further filtering on the
     
    16771669regex
    16781670~~~~~
    16791671
    1680 .. versionadded:: 1.0
    1681 
    16821672Case-sensitive regular expression match.
    16831673
    16841674The regular expression syntax is that of the database backend in use.
     
    17081698iregex
    17091699~~~~~~
    17101700
    1711 .. versionadded:: 1.0
    1712 
    17131701Case-insensitive regular expression match.
    17141702
    17151703Example::
  • docs/ref/models/fields.txt

     
    173173
    174174.. attribute:: Field.db_tablespace
    175175
    176 .. versionadded:: 1.0
    177 
    178176The name of the database tablespace to use for this field's index, if this field
    179177is indexed. The default is the project's :setting:`DEFAULT_INDEX_TABLESPACE`
    180178setting, if set, or the :attr:`~Field.db_tablespace` of the model, if any. If
     
    428426``DecimalField``
    429427----------------
    430428
    431 .. versionadded:: 1.0
    432 
    433429.. class:: DecimalField(max_digits=None, decimal_places=None, [**options])
    434430
    435431A fixed-precision decimal number, represented in Python by a
  • docs/ref/models/instances.txt

     
    170170The ``pk`` property
    171171~~~~~~~~~~~~~~~~~~~
    172172
    173 .. versionadded:: 1.0
    174 
    175173.. attribute:: Model.pk
    176174
    177175Regardless of whether you define a primary key field yourself, or let Django
     
    280278Forcing an INSERT or UPDATE
    281279~~~~~~~~~~~~~~~~~~~~~~~~~~~
    282280
    283 .. versionadded:: 1.0
    284 
    285281In some rare circumstances, it's necessary to be able to force the ``save()``
    286282method to perform an SQL ``INSERT`` and not fall back to doing an ``UPDATE``.
    287283Or vice-versa: update, if possible, but not insert a new row. In these cases
  • docs/ref/models/options.txt

     
    6767
    6868.. attribute:: Options.db_tablespace
    6969
    70 .. versionadded:: 1.0
    71 
    7270The name of the database tablespace to use for the model. If the backend doesn't
    7371support tablespaces, this option is ignored.
    7472
     
    214212appropriate ``UNIQUE`` statements are included in the ``CREATE TABLE``
    215213statement).
    216214
    217 .. versionadded:: 1.0
    218 
    219215For convenience, unique_together can be a single list when dealing with a single
    220216set of fields::
    221217
  • docs/ref/generic-views.txt

     
    178178      specified in ``date_field`` is greater than the current date/time. By
    179179      default, this is ``False``.
    180180
    181     .. versionadded:: 1.0
    182 
    183181    * ``template_object_name``: Designates the name of the template variable
    184182      to use in the template context. By default, this is ``'latest'``.
    185183
     
    204202      ordered in reverse. This is equivalent to
    205203      ``queryset.dates(date_field, 'year')[::-1]``.
    206204
    207     .. versionchanged:: 1.0
    208        The behaviour depending on ``template_object_name`` is new in this version.
    209 
    210205    * ``latest``: The ``num_latest`` objects in the system, ordered descending
    211206      by ``date_field``. For example, if ``num_latest`` is ``10``, then
    212207      ``latest`` will be a list of the latest 10 objects in ``queryset``.
     
    723718
    724719**Template context:**
    725720
    726 .. versionadded:: 1.0
    727    The ``paginator`` and ``page_obj`` context variables are new.
    728 
    729721In addition to ``extra_context``, the template's context will be:
    730722
    731723    * ``object_list``: The list of objects. This variable's name depends on the
  • docs/ref/forms/fields.txt

     
    232232``error_messages``
    233233~~~~~~~~~~~~~~~~~~
    234234
    235 .. versionadded:: 1.0
    236 
    237235.. attribute:: Field.error_messages
    238236
    239237The ``error_messages`` argument lets you override the default messages that the
     
    451449``DecimalField``
    452450~~~~~~~~~~~~~~~~
    453451
    454 .. versionadded:: 1.0
    455 
    456452.. class:: DecimalField(**kwargs)
    457453
    458454    * Default widget: ``TextInput``
     
    505501``FileField``
    506502~~~~~~~~~~~~~
    507503
    508 .. versionadded:: 1.0
    509 
    510504.. class:: FileField(**kwargs)
    511505
    512506    * Default widget: ``FileInput``
     
    525519``FilePathField``
    526520~~~~~~~~~~~~~~~~~
    527521
    528 .. versionadded:: 1.0
    529 
    530522.. class:: FilePathField(**kwargs)
    531523
    532524    * Default widget: ``Select``
     
    571563``ImageField``
    572564~~~~~~~~~~~~~~
    573565
    574 .. versionadded:: 1.0
    575 
    576566.. class:: ImageField(**kwargs)
    577567
    578568    * Default widget: ``FileInput``
  • docs/ref/forms/widgets.txt

     
    5959
    6060.. class:: DateTimeInput
    6161
    62     .. versionadded:: 1.0
    63 
    6462    Date/time input as a simple text box: ``<input type='text' ...>``
    6563
    6664    Takes one optional argument:
  • docs/ref/middleware.txt

     
    185185
    186186.. class:: django.middleware.csrf.CsrfMiddleware
    187187
    188 .. versionadded:: 1.0
    189 
    190188Adds protection against Cross Site Request Forgeries by adding hidden form
    191189fields to POST forms and checking requests for the correct value. See the
    192190:ref:`Cross Site Request Forgery protection documentation <ref-contrib-csrf>`.
  • docs/ref/templates/api.txt

     
    428428django.core.context_processors.media
    429429~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    430430
    431 .. versionadded:: 1.0
    432 
    433431If :setting:`TEMPLATE_CONTEXT_PROCESSORS` contains this processor, every
    434432``RequestContext`` will contain a variable ``MEDIA_URL``, providing the
    435433value of the :setting:`MEDIA_URL` setting.
  • docs/ref/templates/builtins.txt

     
    2121autoescape
    2222~~~~~~~~~~
    2323
    24 .. versionadded:: 1.0
    25 
    2624Control the current auto-escaping behavior. This tag takes either ``on`` or
    2725``off`` as an argument and that determines whether auto-escaping is in effect
    2826inside the block.
     
    235233
    236234You can loop over a list in reverse by using ``{% for obj in list reversed %}``.
    237235
    238 .. versionadded:: 1.0
    239 
    240236If you need to loop over a list of lists, you can unpack the values
    241237in each sub-list into individual variables. For example, if your context
    242238contains a list of (x,y) coordinates called ``points``, you could use the
     
    10221018with
    10231019~~~~
    10241020
    1025 .. versionadded:: 1.0
    1026 
    10271021Caches a complex variable under a simpler name. This is useful when accessing
    10281022an "expensive" method (e.g., one that hits the database) multiple times.
    10291023
     
    12841278escapejs
    12851279~~~~~~~~
    12861280
    1287 .. versionadded:: 1.0
    1288 
    12891281Escapes characters for use in JavaScript strings. This does *not* make the
    12901282string safe for use in HTML, but does protect you from syntax errors when using
    12911283templates to generate JavaScript/JSON.
     
    13871379force_escape
    13881380~~~~~~~~~~~~
    13891381
    1390 .. versionadded:: 1.0
    1391 
    13921382Applies HTML escaping to a string (see the ``escape`` filter for details).
    13931383This filter is applied *immediately* and returns a new, escaped string. This
    13941384is useful in the rare cases where you need multiple escaping or want to apply
     
    14481438last
    14491439~~~~
    14501440
    1451 .. versionadded:: 1.0
    1452 
    14531441Returns the last item in a list.
    14541442
    14551443For example::
  • docs/ref/contrib/gis/index.txt

     
    44GeoDjango
    55=========
    66
    7 .. versionadded:: 1.0
    8 
    97.. module:: django.contrib.gis
    108   :synopsis: Geographic Information System (GIS) extensions for Django
    119
  • docs/ref/contrib/formtools/form-wizard.txt

     
    77.. module:: django.contrib.formtools.wizard
    88    :synopsis: Splits forms across multiple Web pages.
    99
    10 .. versionadded:: 1.0
    11 
    1210Django comes with an optional "form wizard" application that splits
    1311:ref:`forms <topics-forms-index>` across multiple Web pages. It maintains
    1412state in hashed HTML :samp:`<input type="hidden">` fields, and the data isn't
  • docs/ref/contrib/humanize.txt

     
    7474naturalday
    7575----------
    7676
    77 .. versionadded:: 1.0
    78 
    7977For dates that are the current day or within one day, return "today",
    8078"tomorrow" or "yesterday", as appropriate. Otherwise, format the date using
    8179the passed in format string.
  • docs/ref/contrib/sites.txt

     
    230230Caching the current ``Site`` object
    231231===================================
    232232
    233 .. versionadded:: 1.0
    234 
    235233As the current site is stored in the database, each call to
    236234``Site.objects.get_current()`` could result in a database query. But Django is a
    237235little cleverer than that: on the first request, the current site is cached, and
     
    385383
    386384.. _requestsite-objects:
    387385
    388 .. versionadded:: 1.0
    389 
    390386Some :ref:`django.contrib <ref-contrib-index>` applications take advantage of
    391387the sites framework but are architected in a way that doesn't *require* the
    392388sites framework to be installed in your database. (Some people don't want to, or
  • docs/ref/request-response.txt

     
    4949
    5050.. attribute:: HttpRequest.encoding
    5151
    52     .. versionadded:: 1.0
    53 
    5452    A string representing the current encoding used to decode form submission
    5553    data (or ``None``, which means the ``DEFAULT_CHARSET`` setting is used).
    5654    You can write to this attribute to change the encoding used when accessing
     
    191189
    192190.. method:: HttpRequest.get_host()
    193191
    194    .. versionadded:: 1.0
    195 
    196192   Returns the originating host of the request using information from the
    197193   ``HTTP_X_FORWARDED_HOST`` and ``HTTP_HOST`` headers (in that order). If
    198194   they don't provide a value, the method uses a combination of
     
    210206
    211207.. method:: HttpRequest.build_absolute_uri(location)
    212208
    213    .. versionadded:: 1.0
    214 
    215209   Returns the absolute URI form of ``location``. If no location is provided,
    216210   the location will be set to ``request.get_full_path()``.
    217211
     
    228222
    229223.. method:: HttpRequest.is_ajax()
    230224
    231    .. versionadded:: 1.0
    232 
    233225   Returns ``True`` if the request was made via an ``XMLHttpRequest``, by
    234226   checking the ``HTTP_X_REQUESTED_WITH`` header for the string
    235227   ``'XMLHttpRequest'``. Most modern JavaScript libraries send this header.
     
    578570
    579571.. class:: HttpResponseBadRequest
    580572
    581     .. versionadded:: 1.0
    582 
    583573    Acts just like :class:`HttpResponse` but uses a 400 status code.
    584574
    585575.. class:: HttpResponseNotFound
  • docs/ref/unicode.txt

     
    44Unicode data
    55============
    66
    7 .. versionadded:: 1.0
    8 
    97Django natively supports Unicode data everywhere. Providing your database can
    108somehow store the data, you can safely pass around Unicode strings to
    119templates, models and the database.
  • docs/ref/django-admin.txt

     
    9090
    9191.. django-admin:: cleanup
    9292
    93 .. versionadded:: 1.0
    94 
    9593Can be run as a cronjob or directly to clean out old data from the database
    9694(only expired sessions at the moment).
    9795
     
    10098
    10199.. django-admin:: compilemessages
    102100
    103 .. versionchanged:: 1.0
    104    Before 1.0 this was the "bin/compile-messages.py" command.
    105 
    106101Compiles .po files created with ``makemessages`` to .mo files for use with
    107102the builtin gettext support. See :ref:`topics-i18n`.
    108103
     
    131126
    132127.. django-admin:: createsuperuser
    133128
    134 .. versionadded:: 1.0
    135 
    136129Creates a superuser account (a user who has all permissions). This is
    137130useful if you need to create an initial superuser account but did not
    138131do so during ``syncdb``, or if you need to programmatically generate
     
    831824
    832825.. django-admin:: testserver
    833826
    834 .. versionadded:: 1.0
    835 
    836827Runs a Django development server (as in ``runserver``) using data from the
    837828given fixture(s).
    838829
  • docs/ref/settings.txt

     
    513513DEBUG_PROPAGATE_EXCEPTIONS
    514514--------------------------
    515515
    516 .. versionadded:: 1.0
    517 
    518516Default: ``False``
    519517
    520518If set to True, Django's normal exception handling of view functions
     
    578576DEFAULT_TABLESPACE
    579577------------------
    580578
    581 .. versionadded:: 1.0
    582 
    583579Default: ``''`` (Empty string)
    584580
    585581Default tablespace to use for models that don't specify one, if the
     
    590586DEFAULT_INDEX_TABLESPACE
    591587------------------------
    592588
    593 .. versionadded:: 1.0
    594 
    595589Default: ``''`` (Empty string)
    596590
    597591Default tablespace to use for indexes on fields that don't specify
     
    694688EMAIL_USE_TLS
    695689-------------
    696690
    697 .. versionadded:: 1.0
    698 
    699691Default: ``False``
    700692
    701693Whether to use a TLS (secure) connection when talking to the SMTP server.
     
    705697FILE_CHARSET
    706698------------
    707699
    708 .. versionadded:: 1.0
    709 
    710700Default: ``'utf-8'``
    711701
    712702The character encoding used to decode any files read from disk. This includes
     
    717707FILE_UPLOAD_HANDLERS
    718708--------------------
    719709
    720 .. versionadded:: 1.0
    721 
    722710Default::
    723711
    724712    ("django.core.files.uploadhandler.MemoryFileUploadHandler",
     
    731719FILE_UPLOAD_MAX_MEMORY_SIZE
    732720---------------------------
    733721
    734 .. versionadded:: 1.0
    735 
    736722Default: ``2621440`` (i.e. 2.5 MB).
    737723
    738724The maximum size (in bytes) that an upload will be before it gets streamed to
     
    743729FILE_UPLOAD_TEMP_DIR
    744730--------------------
    745731
    746 .. versionadded:: 1.0
    747 
    748732Default: ``None``
    749733
    750734The directory to store data temporarily while uploading files. If ``None``,
     
    918902LANGUAGE_COOKIE_NAME
    919903--------------------
    920904
    921 .. versionadded:: 1.0
    922 
    923905Default: ``'django_language'``
    924906
    925907The name of the cookie to use for the language cookie. This can be whatever you
     
    984966LOGIN_REDIRECT_URL
    985967------------------
    986968
    987 .. versionadded:: 1.0
    988 
    989969Default: ``'/accounts/profile/'``
    990970
    991971The URL where requests are redirected after login when the
     
    999979LOGIN_URL
    1000980---------
    1001981
    1002 .. versionadded:: 1.0
    1003 
    1004982Default: ``'/accounts/login/'``
    1005983
    1006984The URL where requests are redirected for login, especially when using the
     
    1011989LOGOUT_URL
    1012990----------
    1013991
    1014 .. versionadded:: 1.0
    1015 
    1016992Default: ``'/accounts/logout/'``
    1017993
    1018994LOGIN_URL counterpart.
     
    12321208SESSION_ENGINE
    12331209--------------
    12341210
    1235 .. versionadded:: 1.0
    1236 
    12371211.. versionchanged:: 1.1
    12381212   The ``cached_db`` backend was added
    12391213
     
    12831257SESSION_COOKIE_PATH
    12841258-------------------
    12851259
    1286 .. versionadded:: 1.0
    1287 
    12881260Default: ``'/'``
    12891261
    12901262The path set on the session cookie. This should either match the URL path of your
     
    13211293SESSION_FILE_PATH
    13221294-----------------
    13231295
    1324 .. versionadded:: 1.0
    1325 
    13261296Default: ``None``
    13271297
    13281298If you're using file-based session storage, this sets the directory in
  • docs/topics/http/file-uploads.txt

     
    66
    77.. currentmodule:: django.core.files
    88
    9 .. versionadded:: 1.0
    10 
    119When Django handles a file upload, the file data ends up placed in
    1210:attr:`request.FILES <django.http.HttpRequest.FILES>` (for more on the
    1311``request`` object see the documentation for :ref:`request and response objects
  • docs/topics/http/urls.txt

     
    225225url
    226226---
    227227
    228 .. versionadded:: 1.0
    229 
    230228.. function:: url(regex, view, kwargs=None, name=None, prefix='')
    231229
    232230You can use the ``url()`` function, instead of a tuple, as an argument to
     
    636634Naming URL patterns
    637635===================
    638636
    639 .. versionadded:: 1.0
    640 
    641637It's fairly common to use the same view function in multiple URL patterns in
    642638your URLconf. For example, these two URL patterns both point to the ``archive``
    643639view::
  • docs/topics/http/sessions.txt

     
    3131Configuring the session engine
    3232==============================
    3333
    34 .. versionadded:: 1.0
    35 
    3634By default, Django stores sessions in your database (using the model
    3735``django.contrib.sessions.models.Session``). Though this is convenient, in
    3836some setups it's faster to store session data elsewhere, so Django can be
     
    140138
    141139    * ``clear()``
    142140
    143 .. versionadded:: 1.0
    144    ``setdefault()`` and ``clear()`` are new in this version.
    145 
    146141It also has these methods:
    147142
    148143    * ``flush()``
    149144
    150       .. versionadded:: 1.0
    151 
    152145      Delete the current session data from the session and regenerate the
    153146      session key value that is sent back to the user in the cookie. This is
    154147      used if you want to ensure that the previous session data can't be
     
    175168
    176169    * ``set_expiry(value)``
    177170
    178       .. versionadded:: 1.0
    179 
    180171      Sets the expiration time for the session. You can pass a number of
    181172      different values:
    182173
     
    200191
    201192    * ``get_expiry_age()``
    202193
    203       .. versionadded:: 1.0
    204 
    205194      Returns the number of seconds until this session expires. For sessions
    206195      with no custom expiration (or those set to expire at browser close), this
    207196      will equal ``settings.SESSION_COOKIE_AGE``.
    208197
    209198    * ``get_expiry_date()``
    210199
    211       .. versionadded:: 1.0
    212 
    213200      Returns the date this session will expire. For sessions with no custom
    214201      expiration (or those set to expire at browser close), this will equal the
    215202      date ``settings.SESSION_COOKIE_AGE`` seconds from now.
    216203
    217204    * ``get_expire_at_browser_close()``
    218205
    219       .. versionadded:: 1.0
    220 
    221206      Returns either ``True`` or ``False``, depending on whether the user's
    222207      session cookie will expire when the user's Web browser is closed.
    223208
     
    304289Using sessions out of views
    305290===========================
    306291
    307 .. versionadded:: 1.0
    308 
    309292An API is available to manipulate session data outside of a view::
    310293
    311294    >>> from django.contrib.sessions.backends.db import SessionStore
     
    417400SESSION_ENGINE
    418401--------------
    419402
    420 .. versionadded:: 1.0
    421 
    422403.. versionchanged:: 1.1
    423404   The ``cached_db`` backend was added
    424405
     
    436417SESSION_FILE_PATH
    437418-----------------
    438419
    439 .. versionadded:: 1.0
    440 
    441420Default: ``/tmp/``
    442421
    443422If you're using file-based session storage, this sets the directory in
     
    469448SESSION_COOKIE_PATH
    470449-------------------
    471450
    472 .. versionadded:: 1.0
    473 
    474451Default: ``'/'``
    475452
    476453The path set on the session cookie. This should either match the URL path of
  • docs/topics/http/shortcuts.txt

     
    4949                                  context_instance=RequestContext(request))
    5050
    5151``mimetype``
    52 
    53     .. versionadded:: 1.0
    54 
    5552    The MIME type to use for the resulting document. Defaults to the value of
    5653    the :setting:`DEFAULT_CONTENT_TYPE` setting.
    5754
  • docs/topics/auth.txt

     
    192192
    193193    .. method:: models.User.set_unusable_password()
    194194
    195         .. versionadded:: 1.0
    196 
    197195        Marks the user as having no password set.  This isn't the same as
    198196        having a blank string for a password.
    199197        :meth:`~django.contrib.auth.models.User.check_password()` for this user
     
    205203
    206204    .. method:: models.User.has_usable_password()
    207205
    208         .. versionadded:: 1.0
    209 
    210206        Returns ``False`` if
    211207        :meth:`~django.contrib.auth.models.User.set_unusable_password()` has
    212208        been called for this user.
     
    397393only supported on platforms that have the standard Python ``crypt`` module
    398394available.
    399395
    400 .. versionadded:: 1.0
    401     Support for the ``crypt`` module is new in Django 1.0.
    402 
    403396For example::
    404397
    405398    sha1$a1976$a36cc8cbf81742a8fb52e221aaeab48ed7f58ab4
     
    452445Creating superusers
    453446-------------------
    454447
    455 .. versionadded:: 1.0
    456    The ``manage.py createsuperuser`` command is new.
    457 
    458448:djadmin:`manage.py syncdb <syncdb>` prompts you to create a superuser the
    459449first time you run it after adding ``'django.contrib.auth'`` to your
    460450:setting:`INSTALLED_APPS`. If you need to create a superuser at a later date,
  • docs/topics/files.txt

     
    44Managing files
    55==============
    66
    7 .. versionadded:: 1.0
    8 
    97This document describes Django's file access APIs.
    108
    119By default, Django stores files locally, using the :setting:`MEDIA_ROOT` and
  • docs/topics/cache.txt

     
    197197Using a custom cache backend
    198198----------------------------
    199199
    200 .. versionadded:: 1.0
    201 
    202200While Django includes support for a number of cache backends out-of-the-box,
    203201sometimes you might want to use a customized cache backend. To use an external
    204202cache backend with Django, use a Python import path as the scheme portion (the
     
    400398Template fragment caching
    401399=========================
    402400
    403 .. versionadded:: 1.0
    404 
    405401If you're after even more control, you can also cache template fragments using
    406402the ``cache`` template tag. To give your template access to this tag, put
    407403``{% load cache %}`` near the top of your template.
  • docs/topics/db/models.txt

     
    389389Extra fields on many-to-many relationships
    390390~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    391391
    392 .. versionadded:: 1.0
    393 
    394392When you're only dealing with simple many-to-many relationships such as
    395393mixing and matching pizzas and toppings, a standard :class:`~django.db.models.ManyToManyField` is all you need. However, sometimes
    396394you may need to associate data with the relationship between two models.
     
    607605Custom field types
    608606------------------
    609607
    610 .. versionadded:: 1.0
    611 
    612608If one of the existing model fields cannot be used to fit your purposes, or if
    613609you wish to take advantage of some less common database column types, you can
    614610create your own field class. Full coverage of creating your own fields is
     
    770766Model inheritance
    771767=================
    772768
    773 .. versionadded:: 1.0
    774 
    775769Model inheritance in Django works almost identically to the way normal
    776770class inheritance works in Python. The only decision you have to make
    777771is whether you want the parent models to be models in their own right
  • docs/topics/db/queries.txt

     
    439439Spanning multi-valued relationships
    440440~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    441441
    442 .. versionadded:: 1.0
    443 
    444442When you are filtering an object based on a ``ManyToManyField`` or a reverse
    445443``ForeignKey``, there are two different sorts of filter you may be
    446444interested in. Consider the ``Blog``/``Entry`` relationship (``Blog`` to
     
    768766Updating multiple objects at once
    769767=================================
    770768
    771 .. versionadded:: 1.0
    772 
    773769Sometimes you want to set a field to a particular value for all the objects in
    774770a ``QuerySet``. You can do this with the ``update()`` method. For example::
    775771
  • docs/topics/forms/modelforms.txt

     
    108108    ===============================  ========================================
    109109
    110110
    111 .. versionadded:: 1.0
    112     The ``FloatField`` form field and ``DecimalField`` model and form fields
    113     are new in Django 1.0.
    114 
    115111.. versionadded:: 1.2
    116112    The ``BigIntegerField`` is new in Django 1.2.
    117113
  • docs/topics/testing.txt

     
    258258
    259259Note that we used ``animals``, not ``myproject.animals``.
    260260
    261 .. versionadded:: 1.0
    262    You can now choose which test to run.
    263 
    264261You can be even *more* specific by naming an individual test case. To
    265262run a single test case in an application (for example, the
    266263``AnimalTestCase`` described in the "Writing unit tests" section), add
     
    749746
    750747    .. method:: Client.login(**credentials)
    751748
    752         .. versionadded:: 1.0
    753 
    754749        If your site uses Django's :ref:`authentication system<topics-auth>`
    755750        and you deal with logging in users, you can use the test client's
    756751        ``login()`` method to simulate the effect of a user logging into the
     
    795790
    796791    .. method:: Client.logout()
    797792
    798         .. versionadded:: 1.0
    799 
    800793        If your site uses Django's :ref:`authentication system<topics-auth>`,
    801794        the ``logout()`` method can be used to simulate the effect of a user
    802795        logging out of your site.
     
    999992Default test client
    1000993~~~~~~~~~~~~~~~~~~~
    1001994
    1002 .. versionadded:: 1.0
    1003 
    1004995.. attribute:: TestCase.client
    1005996
    1006997Every test case in a ``django.test.TestCase`` instance has access to an
     
    11031094URLconf configuration
    11041095~~~~~~~~~~~~~~~~~~~~~
    11051096
    1106 .. versionadded:: 1.0
    1107 
    11081097.. attribute:: TestCase.urls
    11091098
    11101099If your application provides views, you may want to include tests that use the
     
    11721161Emptying the test outbox
    11731162~~~~~~~~~~~~~~~~~~~~~~~~
    11741163
    1175 .. versionadded:: 1.0
    1176 
    11771164If you use Django's custom ``TestCase`` class, the test runner will clear the
    11781165contents of the test e-mail outbox at the start of each test case.
    11791166
     
    11821169Assertions
    11831170~~~~~~~~~~
    11841171
    1185 .. versionadded:: 1.0
    1186 
    11871172.. versionchanged:: 1.2
    11881173    Addded ``msg_prefix`` argument.
    11891174
     
    12661251E-mail services
    12671252---------------
    12681253
    1269 .. versionadded:: 1.0
    1270 
    12711254If any of your Django views send e-mail using :ref:`Django's e-mail
    12721255functionality <topics-email>`, you probably don't want to send e-mail each time
    12731256you run a test using that view. For this reason, Django's test runner
  • docs/topics/email.txt

     
    198198The EmailMessage class
    199199======================
    200200
    201 .. versionadded:: 1.0
    202 
    203201Django's :meth:`~django.core.mail.send_mail()` and
    204202:meth:`~django.core.mail.send_mass_mail()` functions are actually thin
    205203wrappers that make use of the :class:`~django.core.mail.EmailMessage` class.
  • docs/topics/templates.txt

     
    392392Automatic HTML escaping
    393393=======================
    394394
    395 .. versionadded:: 1.0
    396 
    397395When generating HTML from templates, there's always a risk that a variable will
    398396include characters that affect the resulting HTML. For example, consider this
    399397template fragment::
Back to Top