summaryrefslogtreecommitdiff
path: root/django/contrib/admin
AgeCommit message (Collapse)Author
2008-08-23Fixed #8498 -- Add the ability to customize the template for app_index ↵Brian Rosner
similar to the other views on the AdminSite class. Thanks Jannis Leidel for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #7946: Modified object history template to use a common date format. ↵Russell Keith-Magee
Thanks to Marc Garcia for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #7776: Ensured that the test cookie is always deleted once a login has ↵Russell Keith-Magee
succeeded. Thanks for the report and fix, Mnewman. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #8367 -- Pass the object to get_form from get_fieldsets in ModelAdmin. ↵Brian Rosner
Thanks jarrow for catching this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #1390 -- Added an app index in the admin interface. Thanks juliae and ↵Brian Rosner
ext for their work on patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #8493 -- Fixed a NoReverseMatch when redirecting to ↵Brian Rosner
password_change/done/ in the admin. Added the ability to override redirects to other password change views for consistency. Thanks for the report mtrichardson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8473 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-22Fixed #7947 -- Handle the display of OneToOneField in model forms correctly. ↵Brian Rosner
Thanks tyson for the report and original patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-18Moved admin form helpers to their own module to clean-up ↵Brian Rosner
django/contrib/admin/options.py a little bit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-17Fixed #8353 -- Corrected the case when adminform is not in the context when ↵Brian Rosner
rendering {% prepopulated_fields_js %} in the admin. Thanks evan_schulz for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8421 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed #8341 -- Allow simpler subclassing of ModelAdmin and InlineModelAdmin ↵Brian Rosner
when overriding get_form and get_formset and needing to pass keyword argument on to the factory functions. Thanks ciantic for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed #8292 -- Honor filter_horizontal and filter_vertical in inlines ↵Brian Rosner
correctly. It now adds the right Javascript to handle them when they are the only ones on the page. Thanks dakrauth for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed #5385 -- Made the date returned from the calendar picker consistent ↵Brian Rosner
with the usual format of dates in the admin. Thanks Petr Marhoun for the ticket and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Removed some checks for Model._meta.one_to_one_field to prevent list_filter ↵Brian Rosner
and the show_result_count in search_form.html. Fixes #2145. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed #957 -- prepopulated_fields now works correctly on inlines.Brian Rosner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed media creation in the add_view. It was not pulling media from the ↵Brian Rosner
correct place. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Fixed failing tests from [8352]. Thanks Alex Gaynor for the patch.Brian Rosner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Fixed #8324 -- Corrected the simple case where list_display is not given. ↵Brian Rosner
Thanks tobias for the quick report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Fixed #7503 -- Allow callables in list_display. This also does a lookup on ↵Brian Rosner
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-11Added back save_model that was removed from [8273] to allow for both pre- ↵Brian Rosner
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-11Fixed #8225 -- Right align radio fields in RTL mode, thanks remohammadi.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Refs #7742 -- Changed the ↵Gary Wilson Jr
`django.contrib.admin.views.template.template_validator` view to use newforms instead of oldforms. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10Fixed #8205 -- Corrected a misspelling in the API introduced in [8265] and ↵Russell Keith-Magee
[8274]. Thanks for the report, Simon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10Fixed #8202 -- Moved user_change_password to UserAdmin. This enables ↵Brian Rosner
seamless integration of a custom UserAdmin. Thanks ElliottM for catching this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10Fixed #4667 -- Added support for inline generic relations in the admin. ↵Brian Rosner
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-10Fixed #7250 -- Don't show internal data of a FileField in the admin when the ↵Brian Rosner
form does not validate. This also alternatively fixes a recent problem since [8244] when the form is not valid. Thanks Marc Garcia for the initial ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-09Added a missing import in AdminSite.check_dependancies.Brian Rosner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-09Moved ModelAdmin.check_dependancies to AdminSite. Make debugging problems ↵Brian Rosner
why the admin is not working more apparent. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-09Fixed #5780 -- Adjusted the ModelAdmin API to allow the created/updated objectsBrian Rosner
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-09Fixed #5801: admin requests with GET args now get properly bounced through ↵Jacob Kaplan-Moss
login with those args intact. Thanks for the patch, Rozza. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-09Added ModelAdmin.save_model() and ModelAdmin.save_formset() methods to allow ↵Jacob Kaplan-Moss
for easier modification of objects/inlines at admin-save time. Refs #6002. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-09Broke the admin's use of LogEntry and user messages out into callbacks on ↵Jacob Kaplan-Moss
ModelAdmin. Refs #6002. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-09Fixed #7811: moved admindocs templates into admindocs/templates. This is ↵Jacob Kaplan-Moss
slightly backwards-incompatible in that if you're using the admindocs you'll need to add 'django.contrib.admindocs' to INSTALLED_APPS. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Removed an extraneous } that regressed from an older patch for [8247].Brian Rosner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #8169 -- Honor attrs from subclasses of the new admin widgets ↵Brian Rosner
introduced in [8240]. Thanks Alex Gaynor for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #8107 -- Fixed a missing forced_unicode() call in admin. Patch fromMalcolm Tredinnick
bjronkri. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8245 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-08Fixed #8069 -- Corrected the inconsistent case with BaseInlineFormset. It ↵Brian Rosner
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-08Fixed #8163 -- Restore oldforms admin styling on input fields. Also cleaned ↵Brian Rosner
up some styles for both tabular and stacked inlines. Thanks Nathan Borror for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Added a few force_unicode() calls around objects in the admin. Required forMalcolm Tredinnick
Python 2.3 compatibility. Patch from nfg. Refs #8151, #8153. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-07Added a 'name' attribute to the 'Save' button on admin change formLuke Plant
This makes it much easier/possible for testing tools e.g. twill to find the 'Save' submit button. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-05Merged the gis branch into trunk.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-02Removed some unused and duplicated imports.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-02Fixed #7919 -- md5 and sha modules are deprecated since Python 2.5, use ↵Gary Wilson Jr
hashlib module when available. Patch from Karen Tracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-02Fixed #8078 -- Fixed a Python 2.3 incompatibility in ↵Gary Wilson Jr
`contrib/admin/options.py`, thanks Karen Tracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-02Fixed #8086 -- Removed 2.5 specific keyword argument to __import__. Thanks ↵Brian Rosner
CHasenpflug for noticing this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01Added a missing import from [8186].Brian Rosner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01Pass the correct data as the second parameter to find_module to correct ↵Brian Rosner
admin.autodiscover(). Fixes #7922. Thanks Alex Gaynor for being smarter than me. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01Reverted [8174]. It is causing some serious breakage right now. Need to ↵Brian Rosner
investigate more. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01Fixed #5631 -- When fieldsets contains a field that is on the same line, it ↵Brian Rosner
is now collapsable when collapse is set in classes. Thanks andybak for some research and Karen Tracey for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-01Fixed #7922 -- admin.autodiscover() no longer eats ImportErrors for ↵Brian Rosner
breakfast. Thanks Jan Rademaker and Alex Gaynor for their work on the ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8174 bcc190cf-cafb-0310-a4f2-bffc1f526a37