summaryrefslogtreecommitdiff
path: root/django/contrib
AgeCommit message (Collapse)Author
2008-08-24Fixed #8129: Modified the password reset email template to use a URL lookup, ↵Russell Keith-Magee
so that the email doesn't require customization based on the way that the reset view is deployed. Thanks to davenaff for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-24Added app_label to the context for the add user admin view.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-24Fixed #8509: Cleaned up handling of test cookies in admin logins. Thanks to ↵Russell Keith-Magee
rajeshd for the report of a problem case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8509 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Avoid a crash when unencoding session data for the db backend. This is requiredMalcolm Tredinnick
because some configurations of MySQL (with utf8_bin collation) will return bytestring, rather than unicode data, which was causing problems previously. Refs #8340. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #7903 -- Allow admin's prepopulated_from to work with TextFields. PatchMalcolm Tredinnick
from mk and Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #8359 -- Add an admin log entry when creating a new user.Malcolm Tredinnick
Patch from evan_schulz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed KML sitemaps, and added support for generating KMZ and GeoRSS ↵Justin Bronn
sitemaps; sitemaps now support Google's Geo Sitemap format. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Tweaked the Admin add/change page so that "save" is still the highlightedMalcolm Tredinnick
too look like the default button and it actually operates as the defaut (previously "save and add another" was the default action, which confused people if you hit the save button and it looked like your work was eaten by a grue). Fixed #7272. Patch from Jannis Leidel. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8501 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Tests for password change process. Thanks, Mike Richardson. Fixed #8402.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Updated password change template (in admin templates) to use current formMalcolm Tredinnick
variables (rather than oldforms stuff). Patch from Mike Richardson. Refs #8402. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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 #8465. Mark KML input as safe so elements aren't escaped; added some ↵Justin Bronn
defaults for name and description. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8480 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-21When logging in, change the session key whilst preserving any existingMalcolm Tredinnick
sesssion. This means the user will see their session preserved across a login boundary, but somebody snooping the anonymous session key won't be able to view the authenticated session data. This is the final piece of the session key handling changes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-21Fixed #8376 -- Use request.path and request.path_info at the right moments whenMalcolm Tredinnick
serving data in the flatpage middleware. Patch from jcassee. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-20Fixed #8457 -- Fixed a missing import.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-19Fixed #8415 -- Fixed a typo in the localflavor for the Netherlands. Thanks,Malcolm Tredinnick
Niels Poppe. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-18GeoDjango users may now use `django.contrib.gis.tests.run_tests` for their ↵Justin Bronn
`TEST_RUNNER` so that a testing spatial database is properly created; the GeoDjango test suite runner is renamed to `run_gis_tests`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8434 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-18Fixed `GeoQuery.get_columns()` to be compatible with the changes in r8426.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-17Fixed #8113. Made `get_width_height` a `GoogleZoom` method that takes the ↵Justin Bronn
extent instead of an envelope so it may handle Point geometries. Thanks to Santiago Aguiar for the bug report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8428 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-16Fixed #6547, added support for GeoRSS feeds in `django.contrib.gis.feeds`; ↵Justin Bronn
added the `feed_extra_kwargs` and `item_extra_kwargs` to the `Feed` baseclass so that it's possible for subclasses to add dynamic attributes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixed #8351 -- Fixed the returned value when we attempt to load a ↵Malcolm Tredinnick
cache-backed session object that doesn't alreayd exist. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixed #8229: Added handling for a special case in the validation of Spanish ↵Russell Keith-Magee
ID numbers. Thanks to Marc Garcia for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8405 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-15Removed unused and redefined imports.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8386 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-15Fixed #7364 -- Never cache the contrib.auth login view.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Made a few small tweaks to reduce persistent storage accesses in the sessionMalcolm Tredinnick
backend. Refs #8311, although doesn't fix the problem there. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8381 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-14Fixed #8314 -- Fixed an infinite loop caused when submitting a session key (viaMalcolm Tredinnick
a cookie) with no corresponding entry in the database. This only affected the database backend, but I've applied the same fix to all three backends for robustness. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Removed some testing code inadvertently commited in [8348].Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Fixed #8206 -- Removed validate methods of Model and Model fields. They are ↵Gary Wilson Jr
are unsupported for 1.0 and will be replaced with more complete model validation (refs #6845). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Fixed #8310 -- Actually use the SystemRandom RNG, if available, which fixes anMalcolm Tredinnick
oversight from [8340]. The previous code worked, but this is what I really intended. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Fixed #8276 -- Changed the names of a few Polish localflavor classes to matchMalcolm Tredinnick
their common names/acronyms, similar to other localflavors. Backwards incompatible if you're using these classes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8345 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Fixed #6984 -- Make sure to load session data from the file (if necessary)Malcolm Tredinnick
prior to truncating it during a save. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8344 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Fixed #6941 -- When logging a user out, or when logging in with an existingMalcolm Tredinnick
session and a different user id to the current session owner, flush the session data to avoid leakage. Logging in and moving from an anonymous user to a validated user still keeps existing session data. Backwards incompatible if you were assuming sessions persisted past logout. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-14Implemented a flush() method on sessions that cleans out the session andMalcolm Tredinnick
regenerates the key. Used to ensure the caller gets a fresh session at logout, for example. Based on a patch from mrts. Refs #7515. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8342 bcc190cf-cafb-0310-a4f2-bffc1f526a37