summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2006-11-07Fixed #2923: FileFields can now be modified on windows. Thanks, radek.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4036 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-06Fixed #1021: unique_together should now get validated correctly. Thanks, ↵Jacob Kaplan-Moss
wam@cisco.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@4028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-03Removed fossilized remnant of pre-magic removal m2m code. Thanks for the ↵Russell Keith-Magee
report, Baurzhan Ismagulov. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-02Fixes #2918 -- Clarified the db_prep_save logic for DateField and ↵Russell Keith-Magee
DateTimeField to prevent accidental conversion of non-datetime objects into strings, because SQLite doesn't appear to check for valid date format in a string used on an UPDATE of a datetime column. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3960 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-30Fixed #2968 -- Changed arguments to __import__ to use empty dictionary ↵Adrian Holovaty
instead of empty string, for stricter compliance with Python library reference. Thanks for the patch, Yasushi Masuda git-svn-id: http://code.djangoproject.com/svn/django/trunk@3951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-30Fixes #2965 -- Added i18n for joiner used in validation error messages. ↵Russell Keith-Magee
Thanks, ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-24Fixed #2898 -- Added missing ngettext import to django.db.models.fields.relatedAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-14Fixes #2737 -- Added code to allow None as a query value for __exact ↵Russell Keith-Magee
queries, raising an error otherwise. __exact=None is interpreted as the SQL 'value = NULL'. This fixes some minor problems with queries on unsaved objects with related object sets, and stops queries with a value of None being outright ignored (even if they reference an unknown attribute). git-svn-id: http://code.djangoproject.com/svn/django/trunk@3902 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-27Fixed omission in [3872].Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3873 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-27Reintroduced the changes from [3855] with more flexible handling of versionMalcolm Tredinnick
strings. Refs #2188, #2827. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Removed one more legacy bit from [3855]. Refs #2827.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2827 -- Reverted [3855]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Corrected line that was somehow merged out prior to committing changeset [3858].Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Refs #2243 -- Fixed manipulator handling of raw_id_admin m2m edit_inline fields.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed a problem with editing inline objects.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2188 -- Raise an error when using long CharFields in combination withMalcolm Tredinnick
older MySQL versions. Thanks, Fraser Nevett <mail@nevett.org> . git-svn-id: http://code.djangoproject.com/svn/django/trunk@3855 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2194 -- Tweaked error message for unique_together validator to displayMalcolm Tredinnick
all verbose field names. Patch from dackze+django@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2265 -- Fixed problem with using iterators for "choices" attribute.Malcolm Tredinnick
Thanks, Alex Dedul. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2817 -- Fixed formatting problem in admin help string. Thanks,Malcolm Tredinnick
Maximillian Dornseif. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Added '1' and '0' as allowed text input for BooleanFields. This was required ↵Russell Keith-Magee
to acommodate XML serializers when using MySQL. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25Removed some stray debug that was accidentally left in r3830.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3831 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25Fixes #1816, #2243 -- Removed a stale remnant of pre-magic removal code in ↵Russell Keith-Magee
manipulators that modify m2m object that are edited inline. Thanks to dolemite@wuli.nu and coconutstudio@yahoo.com for the original reports, Tyson Tate for a clean test case, and Jay Parlar for helping out with a solution. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25Made ``pk`` a generic expansion for the primary key, rather than just an ↵Russell Keith-Magee
expansion for __id__exact. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25Fixed #2772 -- Made SQLite support work correctly with Python 2.5 standardMalcolm Tredinnick
module (as well as pysqlite2 for earlier Python versions). Patch from ymasuda[at]ethercube.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22Fixed #2749 -- Get the correct m2m_reverse_name() in generic relations. ThanksMalcolm Tredinnick
to Jay Parlar and Chris Long for some good debugging here. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3787 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22Fixed #2662 -- Changed dictfetchmany and dictfetchall to return iterators,Malcolm Tredinnick
rather than a list, in order to save memory. Patch from Simon Willison. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3783 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-11Fixed #2700 -- Improved introspection for MySQL. Thanks for the patch, ↵Adrian Holovaty
serbaut@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3750 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-11Fixed #2699 -- Added quote_name() call to MySQL introspection.py. Thanks for ↵Adrian Holovaty
the patch, serbaut@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-07Fixes #2653 -- Modified related field utility methods to return None as the ↵Russell Keith-Magee
related name for symmetrical m2m fields on self. Updated validators and unit tests to account for the new behavior. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-05Made psycopg2 backend actually support dictfetch* methods. Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-05Fixes #2658 -- Modified SQLite cursor close() method for in-memory ↵Russell Keith-Magee
databases, making the lifespan of an in-memory database equal to the life of the process, rather than the life of the cursor. Thanks, Ned Batchelder. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31Fixed #2632 -- Made django.db.backends.util._dict_helper more efficient. ↵Adrian Holovaty
Thanks for the patch, Andy Dustman git-svn-id: http://code.djangoproject.com/svn/django/trunk@3684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-28Made psycopg2 backend behave the same as the other backends when it comes to ↵Jacob Kaplan-Moss
unicode and datetime time zone info. See [http://groups.google.com/group/django-developers/browse_frm/thread/4575a3fe0d78e2e4/d607d96f7b422620#d607d96f7b422620 the django-dev thread] for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-12Fixed #2513 -- Changed LazyDate.__get_value__() to return date objects, not ↵Adrian Holovaty
datetime objects git-svn-id: http://code.djangoproject.com/svn/django/trunk@3566 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-12Fixed #2514 -- Improved psycopg2 backend to save/load Unicode strings ↵Adrian Holovaty
correctly. Thanks, crankycoder@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-11Fixed #2458 -- DB API now properly escapes backslashes, so you don't have to ↵Adrian Holovaty
double-escape them. Thanks, tom@eggdrop.ch git-svn-id: http://code.djangoproject.com/svn/django/trunk@3552 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-10Fixed #2512 -- Fixed SQL error when saving existing empty models.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-10Fixed #2484 -- Handle num_in_admin and num_extra_on_change being 0 for theMalcolm Tredinnick
admin interface. Thanks, Joseph Kocherhans. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-09Fixed #2502 -- Fixed typo in db.models.permalink function. Thanks, ↵Adrian Holovaty
adurdin@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-08Negligible style change in django.db.models.loadingAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-01Refs #1796 -- Fixed a problem when creating models with relations toMalcolm Tredinnick
themselves: more than one instance was being created. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-01Fixed #2463 -- Fixed temporarily broken many-to-many fields in admin ↵Adrian Holovaty
interface due to [3507]. Thanks, Nesh git-svn-id: http://code.djangoproject.com/svn/django/trunk@3508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-01Fixed #2269 -- limit_choices_to now works properly with a custom ↵Adrian Holovaty
ForeignKey.to_field. Thanks for reporting, mir@noris.de git-svn-id: http://code.djangoproject.com/svn/django/trunk@3507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-29Seed the global app cache in a call to db.models.get_model() except when we areMalcolm Tredinnick
constructing a model class. Refs #2348. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3490 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-28Added django.db.models.permalink decorator, which decorates a function that ↵Adrian Holovaty
returns a viewname, viewargs and viewkwargs. The decorator returns the result of a reverse URL lookup on those parameters. Documentation is forthcoming. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-28Fixed #1767 -- boolean fields may now have validators! Thanks, Joseph.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Second half of little cleanup tweaks suggested by pyflakes.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Fixed a bunch of spurious imports, typos, and other small errors turned up ↵Jacob Kaplan-Moss
by a pass through PyFlakes. This covers about the first third of the errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-20Fixed #2379 -- Fixed 'search' DB lookup parameter, which was broken by ↵Adrian Holovaty
[3248]. Thanks, Tim Keating git-svn-id: http://code.djangoproject.com/svn/django/trunk@3400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-19Modified BooleanField's to_python method to play nice with encode()ed strings.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3372 bcc190cf-cafb-0310-a4f2-bffc1f526a37