summaryrefslogtreecommitdiff
path: root/docs/model-api.txt
AgeCommit message (Collapse)Author
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
2008-08-15Fixed #6765: Changed docs/model-apit.txt to better indicate what's expected ↵James Bennett
of initial SQL files. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed #8337 -- Corrected typo introduced in [8365]. Thanks to julien for ↵Russell Keith-Magee
the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Refs #8319 -- Added documentation note on the limitations of limit_choices_to.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8365 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-12Fixed #8189, another use of get_FOO_url() missed in the docs after filestorage.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10Fixed #7830 -- Removed all of the remaining, deprecated, non-oldforms features:Gary Wilson Jr
* Support for representing files as strings was removed. Use `django.core.files.base.ContentFile` instead. * Support for representing uploaded files as dictionaries was removed. Use `django.core.files.uploadedfile.SimpleUploadedFile` instead. * The `filename`, `file_name`, `file_size`, and `chuck` properties of `UploadedFile` were removed. Use the `name`, `name`, `size`, and `chunks` properties instead, respectively. * The `get_FIELD_filename`, `get_FIELD_url`, `get_FIELD_size`, and `save_FIELD_file` methods for Models with `FileField` fields were removed. Instead, use the `path`, `url`, and `size` attributes and `save` method on the field itself, respectively. * The `get_FIELD_width` and `get_FIELD_height` methods for Models with `ImageField` fields were removed. Use the `width` and `height` attributes on the field itself instead. * The dispatcher `connect`, `disconnect`, `send`, and `sendExact` functions were removed. Use the signal object's own `connect`, `disconnect`, `send`, and `send` methods instead, respectively. * The `form_for_model` and `form_for_instance` functions were removed. Use a `ModelForm` subclass instead. * Support for importing `django.newforms` was removed. Use `django.forms` instead. * Support for importing `django.utils.images` was removed. Use `django.core.files.images` instead. * Support for the `follow` argument in the `create_object` and `update_object` generic views was removed. Use the `django.forms` package and the new `form_class` argument instead. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08File storage refactoring, adding far more flexibility to Django's file ↵Jacob Kaplan-Moss
handling. The new files.txt document has details of the new features. This is a backwards-incompatible change; consult BackwardsIncompatibleChanges for details. Fixes #3567, #3621, #4345, #5361, #5655, #7415. Many thanks to Marty Alchin who did the vast majority of this work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-05Fixed reST formatting from [8212].Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-05Fixed #7904: added support for a "use_for_related_fields" property on ↵Jacob Kaplan-Moss
managers. If True, the manager will be used for related object lookups instead of the "bare" QuerySet introduced bu [8107]. Patch from Justin Bronn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-02Removed several deprecated features for 1.0 (refs #7830):Gary Wilson Jr
* "simple" cache backend * `ObjectPaginator` * `edit_inline_type` argument for `ForeignKey` fields * `QOperator`, `QNot`, `QAnd` and `QOr` * `maxlength` argument git-svn-id: http://code.djangoproject.com/svn/django/trunk@8191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01Clarify the m2m intermediary docs a bit.James Bennett
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-29Fixed #6095 -- Added the ability to specify the model to use to manage a ↵Russell Keith-Magee
ManyToManyField. Thanks to Eric Florenzano for his excellent work on this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27Remove a couple mentions of manipulators (which are no longer relevant) from ↵James Bennett
docs/model-api.txt git-svn-id: http://code.djangoproject.com/svn/django/trunk@8122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-25Standardised documentation of the Field help_text option and ↵Luke Plant
ModelAdmin.fields 'description' option. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8074 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-21Refs #7864 -- Updates to documentation for the oldforms/newforms switch.Gary Wilson Jr
* Moved forms.txt to oldforms.txt * Moved newforms.txt to forms.txt * Updated links and most references to "newforms" (there are a few sections that need a more significant rewrite). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-19Fixed #4412 -- Added support for optgroups, both in the model when defining ↵Russell Keith-Magee
choices, and in the form field and widgets when the optgroups are displayed. Thanks to Matt McClanahan <cardinal@dodds.net>, Tai Lee <real.human@mrmachine.net> and SmileyChris for their contributions at various stages in the life of this ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-18Merged the newforms-admin branch into trunk.Brian Rosner
This is a backward incompatible change. The admin contrib app has been refactored. The newforms module has several improvements including FormSets and Media definitions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-30Fixed #7543 -- Typo fix. Thanks, James Turnbull.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-26Fixed #7482 -- Fixed an awkward wording in docs/model-api.txt. Thanks, ↵Adrian Holovaty
cbmeeks <cbmeeks@gmail.com> git-svn-id: http://code.djangoproject.com/svn/django/trunk@7757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-26Various documentation editsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-20Fixed #3774 - primary_key=True does not, in fact, imply blank=FalseLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-17Refs #7216 -- Corrected typo, removed comma, trimmed trailing whitespace, ↵Gary Wilson Jr
and fixed reST link in [7678]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-17Fixed #7216 -- Added a description on how to use named URLs with a ↵Russell Keith-Magee
permalink. Thanks, masklinn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7678 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16Fixed #6944 -- Fixed a small typo in docs/model-api.txt. Thanks, julienAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-05-22Reverted mistaken r7545Luke Plant
r7545 was a mistake due to not accounting for r7078 Thanks Ramiro Morales for catching this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-05-22Fixed documentation of 'description' option of Admin.fields to reflect ↵Luke Plant
actual behaviour git-svn-id: http://code.djangoproject.com/svn/django/trunk@7545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-27Made a bunch of spelling corrections.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-27Merged the queryset-refactor branch into trunk.Malcolm Tredinnick
This is a big internal change, but mostly backwards compatible with existing code. Also adds a couple of new features. Fixed #245, #1050, #1656, #1801, #2076, #2091, #2150, #2253, #2306, #2400, #2430, #2482, #2496, #2676, #2737, #2874, #2902, #2939, #3037, #3141, #3288, #3440, #3592, #3739, #4088, #4260, #4289, #4306, #4358, #4464, #4510, #4858, #5012, #5020, #5261, #5295, #5321, #5324, #5325, #5555, #5707, #5796, #5817, #5987, #6018, #6074, #6088, #6154, #6177, #6180, #6203, #6658 git-svn-id: http://code.djangoproject.com/svn/django/trunk@7477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20Fixed #6445 -- Allow model instances to be used as a default for ForeignKeysMalcolm Tredinnick
(via a callable). Also updates the documentation of the "default" attribute to indicate a callable can be used. Thanks, Philipe Raoult. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Fixed #6541: Corrected documentation of how the admin chooses a default ↵James Bennett
manager. Refs #6538. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-14Added a "new in development version" marker that I randomly realised I'd ↵Malcolm Tredinnick
forgotten. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-13Fixed a typo in docs/model-api.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-26Added documentation about the "app.Model" relation syntax introduced by [7185]Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-15Made a bunch of tiny documentation formatting and typo fixes.Malcolm Tredinnick
Thanks, quicklizard, adamv, Gary Wilson, superjudge and David Pretty. Fixed #6554, #6573 ,#6592, #6595, #6608. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Edited various doc changes from [6801]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-01Fixed #6007: Added DEFAULT_TABLESPACE and DEFAULT_INDEX_TABLESPACE Ian Kelly
options to global_settings.py git-svn-id: http://code.djangoproject.com/svn/django/trunk@6801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-29Fixed #5955 -- Made a bunch of ReST fixes. Thanks, SmileyChris.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-05Documentation for creating custom model fields.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #4944 -- Added a note about Model.save() raising IntegrityError is aMalcolm Tredinnick
'unique' constraint is violated. Patch from PhiR. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6566 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-20Fixed errors in docs/model-api.txt changes from [6378]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-19Fixed #231: all fields that should take max_length now do. Thanks, Don ↵Jacob Kaplan-Moss
Spaulding. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-16Fixed #3703 -- Added pk property to models. Thanks, Collin Grady and ↵Malcolm Tredinnick
jeromie@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5449 -- Noted in docs/model-api.txt that the admin date selection ↵Adrian Holovaty
always starts on a Sunday. Thanks, flother git-svn-id: http://code.djangoproject.com/svn/django/trunk@6304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #5460 -- unique_together now accepts a single tuple for convenience. ↵Adrian Holovaty
Thanks, Deryck Hodge git-svn-id: http://code.djangoproject.com/svn/django/trunk@6213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #5342 -- Added max_length parameter to EmailField. Thanks, ↵Adrian Holovaty
donspaulding and gwilson git-svn-id: http://code.djangoproject.com/svn/django/trunk@6205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #4544 -- Updated docs for allowed field types in an admin list_filter. ↵Russell Keith-Magee
Thanks to Matt Croydon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-12Fixed #5406 -- Fixed spelling error in docs/model-api.txt. Thanks, Andrew ↵Adrian Holovaty
Shearer git-svn-id: http://code.djangoproject.com/svn/django/trunk@6109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-08Fixed #5346 -- Fixed a couple typos in the model-api docs. Thanks, David ↵Gary Wilson Jr
Paccoud. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-25Fixed #5170 -- Made FileField a link in the ImageField section of ↵Adrian Holovaty
docs/model-api.txt -- assuming the ReST gods are smiling on me today git-svn-id: http://code.djangoproject.com/svn/django/trunk@6007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-12Fixed #5110 -- Made a small clarification in docs/model-api.txt. Thanks, ↵Adrian Holovaty
Jarek Zgoda git-svn-id: http://code.djangoproject.com/svn/django/trunk@5860 bcc190cf-cafb-0310-a4f2-bffc1f526a37