summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2009-07-15[1.0.X] Fixed #11235 -- Added a missing clause from some sample SQL in the ↵Russell Keith-Magee
queryset docs. Merge of r11239 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-24[1.0.X] Fixed #11354 -- Remove stray whitespace in queryset docs. Thanks to ↵Russell Keith-Magee
flebel for the report. Merge of r11094 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-17[1.0.X] Fixed #9919 -- Added note on the need to mark transactions as dirty ↵Russell Keith-Magee
when using raw SQL. Merge of r11022 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11024 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-10[1.0.X] Fixed #10981 -- Clarified documentation regarding lazy ↵Russell Keith-Magee
cross-application relationships. Thanks to Ramiro for the suggestion. Merge of r10971 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10974 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-16[1.0.X] Fixed #10776 -- Added metadata targets for the contrib.admin docs, ↵Russell Keith-Magee
and used one of those targets to clarify the SlugField docs. Thanks to ernop for the suggestion, and timo for the patch. Merge of r10564 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03[1.0.X] Fixed a whole bunch of small docs typos, errors, and ommissions. ↵Jacob Kaplan-Moss
Backport of the parts of r10371 that apply to the 1.0 docs. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10372 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01[1.0.X] A whole lotta documentation fixes, backported from r10303 on trunk.Jacob Kaplan-Moss
I got my commit message cut off the first try, but luckily I get to still thank Kevin Kubasik for rolling all these fixes up into a single easy patch. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31[1.0.X]: Fixed #10553 -- Corrected several uses of `URLconf` in ↵Gary Wilson Jr
documentation and comments, according to the Django style guide. Based on patch from rduffield. Backport of r10256 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31[1.0.X]: Fixed #10389, #10501, #10502, #10540, #10562, #10563, #10564, ↵Gary Wilson Jr
#10565, #10568, #10569, #10614, #10617, #10619 -- Fixed several typos as well as a couple minor issues in the docs, patches from timo, nih, bthomas, rduffield, UloPe, and sebleier@gmail.com. Backport of r10242 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30[1.0.X]: Fixed a few class references in the model field docs.Gary Wilson Jr
Backport of r10207 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30[1.0.X]: Fixed #10076 -- Documented invalid arguments for `FileField`, based ↵Gary Wilson Jr
on patch from timo. Backport of r10204 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30[1.0.X]: Fixed #9853 -- Added information to the model date/time fields to ↵Gary Wilson Jr
note the Python objects used to represent them. Backport of r10198 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-24[1.0.X] Made a couple of cross-references in the model fields documentaiton ↵Malcolm Tredinnick
consistent. Backport of r10007 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-24[1.0.X] Fixed #10329 -- Added link target for get_FOO_display, ↵Russell Keith-Magee
get_next_by_FOO, and get_previous_by_FOO. Thanks to rctay for the report, and timo for the patch. Merge of r10152 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-05[1.0.X] Clarified documentation regarding Oracle's treatment of nulls and ↵Ian Kelly
empty strings. Backport of [9976] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-22[1.0.X] Fixed #9347 -- Added an entry in the field reference for the ↵Russell Keith-Magee
verbose_name option. Thanks to marcoberi for the suggestion, and timo for the eventual patch. Merge of r9865 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-22[1.0.X] Fixed #9939 -- Corrected minor error in model fields documentation. ↵Russell Keith-Magee
Thanks to seemant for the report. Merge of r9864 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-06[1.0.X] Documented that case-insensitive matching is not supported for non-ASCIIMalcolm Tredinnick
strings in SQLite. Refs #9905. Backport of r9705 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-12-16[1.0.X] Fixed #9431 -- Added extra validation for VARCHAR-based fields on MySQL.Malcolm Tredinnick
max_length > 255 and unique=True is not permitted. Based on a patch from adamnelson. Backport of r9470 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-15[1.0.x] Fixed #9477 -- Removed and edited a bunch of references to "developmentMalcolm Tredinnick
version". Some were replaced with versionadded or versionchanged directives. Other, more minor ones, were removed altogether. Based on a patch from James Bennett. Backport of r9454 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-02[1.0.X] Fixed #9497 - Doc typos. Many thanks ramiro. Karen Tracey
[9330] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-24[1.0.X] Fixed #9420 -- Fixed an exception type in the documentation ofMalcolm Tredinnick
Queryset.get(). Based on a suggestion from daveyjoe. Backport of r9257 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-24[1.0.X] Fixed #9390 -- Restored some documentation about select_related() thatMalcolm Tredinnick
was accidentally lost in the docs refactor. Backport of r9256 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06[1.0.X] Fixed a couple of markup errors in the documentation.Malcolm Tredinnick
Backport of r9164 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-30[1.0.X] Apply doc fix from [9105]; refs #9255.James Bennett
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-28Restored documentation about pickling QuerySets (and how to only pickle theMalcolm Tredinnick
details for the query, rather than the results) from r7499. These were accidentally nuked in the docs refactor. We know who the offenders were. They will be made to sit in the corner on the naughty mat for a while. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-22Fixed #8967: Added documentation for the 'through' option on a many-to-many ↵Russell Keith-Magee
field in the fields reference documentation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-11Re-added docs for QuerySet reverse() and all() methods, refs #9000 - thanks ↵Simon Willison
ramiro git-svn-id: http://code.djangoproject.com/svn/django/trunk@9005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-10Fixed #9003 -- Fixed awkward wording in querysets.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8996 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03Added a note about queryset.query being opaque.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03Fixed #8849: added some more "new in 1.0" flags. Thanks, ramiro.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8947 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03Fixed #8838 - two typos in model field docs. Thanks, arienSimon Willison
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03Fixed #8802 -- Documented MySQL's usage of 1/0 instead of True/False for modelMalcolm Tredinnick
BooleanFields. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02A bunch of cleanups to file documentation. Along the way some references to ↵Jacob Kaplan-Moss
the old file methods were removed - thanks, varikin. Fixes #8642. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02Fixed #8753: converted "new in ..." callouts to proper Sphinx ↵Jacob Kaplan-Moss
"versionadded/versionchanged" directives. Thanks to Marc Fargas for all the heavy lifting here. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02Fixed #8786: Moved phone number field docs to localflavorJames Bennett
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01Fixed #8210 and #8664: moved `USStateField` and `PhoneNumberField` to ↵Jacob Kaplan-Moss
`django.contrib.localflavor.us`. This is a backwards-incompatible change, albeit a minor one; just add an aditional `import` and go on your way. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01Fixed #8730: Incorporated (with minor changes) additions/enhancements to ↵James Bennett
one-to-one docs git-svn-id: http://code.djangoproject.com/svn/django/trunk@8787 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31Fixed #8533: restored model inheritance docs, and updated one-to-one docs to ↵James Bennett
match git-svn-id: http://code.djangoproject.com/svn/django/trunk@8757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31Fixed #8658: Added cross-references to signals docs from Model.save() docsJames Bennett
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8755 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31Fixed #8679: use full signature of Model.save() in docs and remove ↵James Bennett
no-longer-used 'raw' argument git-svn-id: http://code.djangoproject.com/svn/django/trunk@8754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29Revived a bunch of missing documentation that got lost in the docs-refactor.Malcolm Tredinnick
This describes values_list(), the new cross-model order_by() syntax and the effects of distinct(), values() and order_by() on each other. Fixed #8634. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29Fixed #8662 -- Fixed the documentation of Model.save() to match the realMalcolm Tredinnick
signature so that people overriding it will use the right signature. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8689 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Changed create() and get_or_create() to force an insert (not update an ↵Malcolm Tredinnick
existing value). Backwards incompatible if you are using manually-specific primary key values and relying on the previously documented behaviour that the new values would always exist in the database (i.e. it would update the existing entry). Fixed #8419. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #8406: Corrected some expected output to use repr format. Thanks to ↵Russell Keith-Magee
arien for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8658 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Removed oldforms, validators, and related code:Gary Wilson Jr
* Removed `Manipulator`, `AutomaticManipulator`, and related classes. * Removed oldforms specific bits from model fields: * Removed `validator_list` and `core` arguments from constructors. * Removed the methods: * `get_manipulator_field_names` * `get_manipulator_field_objs` * `get_manipulator_fields` * `get_manipulator_new_data` * `prepare_field_objs_and_params` * `get_follow` * Renamed `flatten_data` method to `value_to_string` for better alignment with its use by the serialization framework, which was the only remaining code using `flatten_data`. * Removed oldforms methods from `django.db.models.Options` class: `get_followed_related_objects`, `get_data_holders`, `get_follow`, and `has_field_type`. * Removed oldforms-admin specific options from `django.db.models.fields.related` classes: `num_in_admin`, `min_num_in_admin`, `max_num_in_admin`, `num_extra_on_change`, and `edit_inline`. * Serialization framework * `Serializer.get_string_value` now calls the model fields' renamed `value_to_string` methods. * Removed a special-casing of `models.DateTimeField` in `core.serializers.base.Serializer.get_string_value` that's handled by `django.db.models.fields.DateTimeField.value_to_string`. * Removed `django.core.validators`: * Moved `ValidationError` exception to `django.core.exceptions`. * For the couple places that were using validators, brought over the necessary code to maintain the same functionality. * Introduced a SlugField form field for validation and to compliment the SlugField model field (refs #8040). * Removed an oldforms-style model creation hack (refs #2160). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26Added documentation to explain the gains and losses when using utf8_binMalcolm Tredinnick
collation in MySQL. This should help people to make a reasonably informed decision. Usually, leaving the MySQL collation alone will be the best solution, but if you must change it, this gives a start to the information you need and pointers to the appropriate place in the MySQL docs. There's a small chance I also got all the necessary Sphinx markup correct, too (it builds without errors, but I may have missed some chances for glory and linkage). Fixed #2335, #8506. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8568 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Massive reorganization of the docs. See the new docs online at ↵Jacob Kaplan-Moss
http://docs.djangoproject.com/. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8506 bcc190cf-cafb-0310-a4f2-bffc1f526a37