Weblog

Week in review: May 21

Here are the highlights of Django improvements this week:

  • Changeset 2909: Made automatic model verbose_name calculating smarter, with regard to consecutive capital letters. For example, previously it converted something like "USAResident" to "u s a resident", but now it's "usa resident". Thanks, Alex Dedul.
  • Changeset 2922: MySQL inspectdb now detects tinyint field properly.
  • Changeset 2927: Made DJANGO_SETTINGS_MODULE optional. You can now call django.conf.settings.configure() to set settings manually if you don't have a settings module. This goes a long way in making it possible to use various bits of Django, such as the template system, without needing to set up a settings file. See the new documentation. Thanks, Malcolm Tredinnick, Luke Plant and Fredrik Lundh.
  • Changesets 2928 and 2934: Added a postgresql_psycopg2 backend, for folks who'd like to use the new(ish) version of psycopg, 2.0. Thanks, germish@gmail.com.
  • Changeset 2951: The update_object generic view no longer assumes the object's get_absolute_url() doesn't change. Thanks, marcink@elksoft.pl.
  • Changeset 2952: Using a FilePathField no longer breaks the admin model documentation. Thanks, Adam Endicott.
  • Changeset 2954: Improved the login_required() view decorator to save query-string parameters in passing the "next" page parameter.
  • Changeset 2959: Added a very cool manager, CurrentSiteManager, which limits the objects to those found on the current site. Thanks, Ian Holsman. (Read the docs.)

Also, we continue to improve the documentation substantially. Special thanks to Malcolm Tredinnick for his relentless improvements. New for your perusal this week:

In other Django news:

Posted by Adrian Holovaty on May 22, 2006