Commit Graph

25 Commits

Author SHA1 Message Date
Brian Rosner b2ec6473c0 Fixed #7503 -- Allow callables in list_display. This also does a lookup on the ModelAdmin for the method if the value is a string before looking on the model. Refs #8054. Thanks qmanic and Daniel Pope for tickets and patches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14 20:12:19 +00:00
Brian Rosner c4d07d4d50 Corrected a documentation error. Thanks sk1p for catching this.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-12 13:41:40 +00:00
Brian Rosner 8ad96b4d29 Added back save_model that was removed from [8273] to allow for both pre- and post- operations around save in ModelAdmin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11 17:20:47 +00:00
Brian Rosner 02cc59187b Fixed #4667 -- Added support for inline generic relations in the admin. Thanks to Honza Král and Alex Gaynor for their work on this ticket.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10 04:03:01 +00:00
Brian Rosner 65be56816f Fixed #5780 -- Adjusted the ModelAdmin API to allow the created/updated objects
to be passed to the formsets prior to validation.

This is a backward incompatible change for anyone overridding save_add or
save_change. They have been removed in favor of more granular methods
introduced in [8266] and the new response_add and response_change nethods.
save_model has been renamed to save_form due to its slightly changed behavior.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-09 20:52:40 +00:00
Brian Rosner c49eac7d4f Fixed #8069 -- Corrected the inconsistent case with BaseInlineFormset. It has been renamed to BaseInlineFormSet. Backward incompatible for anyone who used BaseInlineFormset directly.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08 20:27:48 +00:00
Brian Rosner 6d4b143786 Fixed #8166 -- Corrected a typo in the admin documentation. Thanks d00gs for the hawk eyes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08 20:02:10 +00:00
Brian Rosner 8be1a43093 Fixed #7942 -- Added a note to the admin ordering option documentation about the admin only respecting the first element. Thanks mwdiers for the report and MattBowen for the original patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-04 19:51:06 +00:00
Brian Rosner 40cd410955 Clarified the intermediary models admin documentation and a minor clean-up.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-04 19:37:47 +00:00
Brian Rosner ac69520890 Added the missing form option to the ModelAdmin options section. Also added a section for custom validation in the admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-04 19:29:33 +00:00
Brian Rosner b5c5e8b4c0 Reverted [8182]. Accidently committed from the wrong branch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01 22:47:45 +00:00
Brian Rosner 9d3c921857 Initial admin template docs. Needs more work.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01 22:46:09 +00:00
Brian Rosner 2904c1d4b3 Clarified the raw_id_fields documentation and added it to InlineModelAdmin options section. Added examples as well. Fixes #7905. Thanks Matthew Flanagan for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01 19:47:26 +00:00
Brian Rosner e7508a456e Fixed #7983 -- Added fields to the ModelAdmin section in the admin documentation. Thanks julien for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01 19:29:37 +00:00
Russell Keith-Magee 174641b9b3 Fixed #6095 -- Added the ability to specify the model to use to manage a 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-29 12:41:08 +00:00
Gary Wilson Jr 156b21a339 Removed trailing whitespace in admin docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 18:36:08 +00:00
Gary Wilson Jr b1c0dc5a01 Normalized the use of "JavaScript" in the documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 18:34:21 +00:00
Gary Wilson Jr 633ed5c4c9 Fixed #7986 -- Added to the documentation the purpose of the `prepopulated_fields` `ModelAdmin` option now that its no longer just a parameter for `SlugField` fields, thanks frasern.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 18:27:56 +00:00
Luke Plant 7c0cf545ef Standardised documentation of the Field help_text option and ModelAdmin.fields 'description' option.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8074 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-25 14:47:35 +00:00
Brian Rosner 9237466bee Removed a colon that was rendering the bullet-point list below it as code in docs/admin.txt.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8066 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23 22:39:41 +00:00
Brian Rosner 4e723f9571 Fixed #7897 -- Corrected some spelling and grammatical errors in the InlineModelAdmin objects documentation. Thanks arthurk and Karen Tracey for catching these.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23 22:30:25 +00:00
Gary Wilson Jr ce3bdc86d4 Refs #7864 -- Corrected more instances of "newforms" in the docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-21 16:56:52 +00:00
Brian Rosner c2ee295f50 Fixed #7850 -- Added adding django.contrib.admin to INSTALLED_APPS to the steps to activating the Django admin site. Thanks dacort for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8010 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-20 18:20:54 +00:00
Brian Rosner 4729e3836e Fixed #7839 -- Corrected admin documentation and tutorial to reflect that 'classes' should be a list and not a string. Thanks Jan Rademaker for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-19 15:37:28 +00:00
Brian Rosner a19ed8aea3 Merged the newforms-admin branch into trunk.
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-07-18 23:54:34 +00:00