summaryrefslogtreecommitdiff
path: root/docs/model-api.txt
AgeCommit message (Collapse)Author
2007-08-07Fixed #5097 -- Made various updates and corrections to the documentation. ↵Adrian Holovaty
Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@5825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-06Added note to docs/model-api.txt about help_text not being escaped in the ↵Adrian Holovaty
admin interface git-svn-id: http://code.djangoproject.com/svn/django/trunk@5816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-05Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms ↵Gary Wilson Jr
`FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-05Changed some more links to be relative in the documentation. I had a couple ↵Gary Wilson Jr
unsaved files that didn't get in with [5798]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5802 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-04Fixed #5078 -- Fixed several broken links to the syndication documentation.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5796 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-20Added some additional docs to docs/model-api.txt db_type() sectionAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-20Added a db_type() method to the database Field class. This is a hook for ↵Adrian Holovaty
calculating the database column type for a given Field. Also converted all management.py CREATE TABLE statements to use db_type(), which made that code cleaner. The Field.get_internal_type() hook still exists, but we should consider removing it at some point, because db_type() is more general. Also added docs -- the beginnings of docs on how to create custom database Field classes. This is backwards-compatible. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-10Fixed #4817 -- Removed leading forward slashes from some urlconf examples in ↵Gary Wilson Jr
the documentation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-30Fixed some awkward wordings from docs/model-api.txt from [5519] and added ↵Adrian Holovaty
'new in Django development version' notes git-svn-id: http://code.djangoproject.com/svn/django/trunk@5560 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23Merged boulder-oracle-sprint branch (r3965:5512) back into trunk. AllMalcolm Tredinnick
expected tests pass for all databases. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-20Fixed #4637 -- Fixed broken link in docs/model-api.txt. Thanks, ↵Adrian Holovaty
john.scott.atlakson@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@5505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-20Fixed #4638 -- Fixed typo in docs/model-api.txt. Thanks, ↵Adrian Holovaty
john.scott.atlakson@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@5504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-11Fixed #4406 -- Documented the maxlength parameter (added in [4295]) for theMalcolm Tredinnick
URLField. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-07Fixed #3880: added a link to the transaction docs from the model API. ↵Jacob Kaplan-Moss
Thanks, ken37@tds.net. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-27Added references to the various get_FOO_*() methods for FileField andMalcolm Tredinnick
ImageField. Fixed #4025. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26Fixed #4351 -- Attempted to make it easier for readers to see the differenceMalcolm Tredinnick
between null and blank if they are reading from top to bottom. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21Added 'New in Django development version' notes to docs/model-api.txt ↵Adrian Holovaty
regarding DecimalField and FloatField (see [5302]) git-svn-id: http://code.djangoproject.com/svn/django/trunk@5308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21Fixed #2365, #3324 -- Renamed FloatField to DecimalField and changed the codeMalcolm Tredinnick
to return Decimal instances in Python for this field. Backwards incompatible change. Added a real FloatField (stores floats in the database) and support for FloatField and DecimalField in newforms (analogous to IntegerField). Included decimal.py module (as django.utils._decimal) from Python 2.4. This is license compatible with Django and included for Python 2.3 compatibility only. Large portions of this work are based on patches from Andy Durdin and Jorge Gajon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19Fixed #4334 -- Fixed typo in model-api.txt. Thanks, Gary Wilson.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-18Fixed small grammar error in docs/model-api.txt from [5250]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5281 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15Fixed #3664 -- Documented that get_absolute_url() and item_link() (inMalcolm Tredinnick
syndication) links are expected to be strings that can be used in URLs without further quoting or encoding. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08Fixed #4203 -- Noted that "blank" defaults to False in models. Thanks,Malcolm Tredinnick
david@kazserve.org. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-25Fixed #3857 -- Used a table to describe the required arg for FileField. ThisMalcolm Tredinnick
makes it consistent with other argument descriptions. Thanks, whiteinge. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5066 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-20Changed all URL references for django_admin/ to the canonical name ofMalcolm Tredinnick
django-admin/. This will avoid problems with missing HTTP redirects in future historical documents. Refs #3992. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-13Fixed #4029 -- Fixed some broken links and made some links relative in ↵Adrian Holovaty
docs/model-api.txt git-svn-id: http://code.djangoproject.com/svn/django/trunk@5005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-13Fixed #3786 -- Fixed sqlinitialdata references in some docs. Thanks, Ramiro ↵Adrian Holovaty
Morales git-svn-id: http://code.djangoproject.com/svn/django/trunk@5004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-09Backwards-incompatible change -- Removed LazyDate helper class. To preserve ↵Russell Keith-Magee
existing functionality, query arguments can now be callable. Callable query arguments are evaluated with the query is evaluated. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01Edited docs/model-api.txt permalink changes from [4879]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4891 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31Fixed #3540 -- Updated permalink documentation to fix an error and document howMalcolm Tredinnick
to pass keyword arguments. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23Remove notes about things added/removed in development version, since the ↵James Bennett
development version is about to become 0.96 git-svn-id: http://code.djangoproject.com/svn/django/trunk@4804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-16Tightened change to docs/model-api.txt from [4692]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-09Fixed #2869 -- Do not append ADMIN_MEDIA_PREFIX to absolute-path URLs used forMalcolm Tredinnick
included javascript. Based on patches from SmileyChris and oyvind@saltvik.no. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26Small cleanup of docs/model-api.txt change from [4625]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4626 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26Fixed #3455: added documentation of Model.get_FIELD_display(). Thanks, ↵Jacob Kaplan-Moss
Ubernostrum. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26Fixed #3397: You can now order by non-DB fields in the admin by telling ↵Jacob Kaplan-Moss
Django which field to actually order by. Thanks, marcink@elksoft.pl git-svn-id: http://code.djangoproject.com/svn/django/trunk@4596 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25Reverted [4578] because there's no such thing as a PasswordField database ↵Adrian Holovaty
field type git-svn-id: http://code.djangoproject.com/svn/django/trunk@4579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25Fixed #2071: added a smidge of docs on PasswordField. Thanks for the patch, ↵Jacob Kaplan-Moss
asmodai. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18Copy edited new docs in docs/model-api.txt from [4535]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17Fixed #2568 -- Added documentation for the permalink() decorator. Based on aMalcolm Tredinnick
patch from Joeboy. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4535 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-25Fixed #3098 -- Added db_table parameter to m2m fields, allowing the ↵Russell Keith-Magee
specification of a custom table name for the m2m table. Thanks, Wolfram Kriesing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23Fixed #3346 -- Documented that search_fields Admin option can use related ↵Adrian Holovaty
models. Thanks for the patch, Robert Myers and Gary Wilson git-svn-id: http://code.djangoproject.com/svn/django/trunk@4392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-12Fixed #3287: method columns in the admin changelist can now have a ↵Jacob Kaplan-Moss
{{{boolean}}} attribute that uses the clever little checkmark icons instead of the ugly "True" or "False" strings. Thanks for the patch, xian@mintchaos.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@4309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-03Fixed #3223 -- Fixed typo in model API docs. Thanks, David van Mosselbeen.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-19Added note to docs/model-api.txt that EmailField has automatic maxlength=75Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25Negligible spacing fix to docs/model-api.txt from [3781]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22Fixed #2649 -- Clarified behaviour of editable attribute on models. Thanks,Malcolm Tredinnick
heckj@mac.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3781 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-23Added some helpful hints to list_display documentation in docs/model-api.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-20Fixed typo in docs/model-api.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-18Fixed #2559 -- Added cool new operators for Admin.search_fields, plus ↵Adrian Holovaty
documentation. Thanks, Andy Dustman. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3601 bcc190cf-cafb-0310-a4f2-bffc1f526a37