mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
[1.5.X] Fixed more broken links. refs #19516
Backport of 9c5a6adf33 from master
This commit is contained in:
@@ -919,7 +919,7 @@ A :class:`CharField` for a URL.
|
||||
The default form widget for this field is a :class:`~django.forms.TextInput`.
|
||||
|
||||
Like all :class:`CharField` subclasses, :class:`URLField` takes the optional
|
||||
:attr:`~CharField.max_length`argument. If you don't specify
|
||||
:attr:`~CharField.max_length` argument. If you don't specify
|
||||
:attr:`~CharField.max_length`, a default of 200 is used.
|
||||
|
||||
.. versionadded:: 1.5
|
||||
|
||||
@@ -85,14 +85,14 @@ Django quotes column and table names behind the scenes.
|
||||
|
||||
The name of an orderable field in the model, typically a :class:`DateField`,
|
||||
:class:`DateTimeField`, or :class:`IntegerField`. This specifies the default
|
||||
field to use in your model :class:`Manager`'s :class:`~QuerySet.latest`
|
||||
method.
|
||||
field to use in your model :class:`Manager`'s
|
||||
:meth:`~django.db.models.query.QuerySet.latest` method.
|
||||
|
||||
Example::
|
||||
|
||||
get_latest_by = "order_date"
|
||||
|
||||
See the docs for :meth:`~django.db.models.query.QuerySet.latest` for more.
|
||||
See the :meth:`~django.db.models.query.QuerySet.latest` docs for more.
|
||||
|
||||
``managed``
|
||||
-----------
|
||||
|
||||
@@ -1637,7 +1637,7 @@ Finally, realize that ``update()`` does an update at the SQL level and, thus,
|
||||
does not call any ``save()`` methods on your models, nor does it emit the
|
||||
:attr:`~django.db.models.signals.pre_save` or
|
||||
:attr:`~django.db.models.signals.post_save` signals (which are a consequence of
|
||||
calling :meth:`Model.save() <~django.db.models.Model.save()>`). If you want to
|
||||
calling :meth:`Model.save() <django.db.models.Model.save>`). If you want to
|
||||
update a bunch of records for a model that has a custom
|
||||
:meth:`~django.db.models.Model.save()` method, loop over them and call
|
||||
:meth:`~django.db.models.Model.save()`, like this::
|
||||
|
||||
Reference in New Issue
Block a user