summaryrefslogtreecommitdiff
path: root/django/core/meta
AgeCommit message (Collapse)Author
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-12Fixed #1626 -- Fixed a bunch of typos in comments and docs. Thanks, DexterAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10Renamed OneToOne to OneToOneRel to be consistent with ManyToManyRelAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10Renamed ManyToOne to ManyToOneRel to be consistent with ManyToManyRelAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10Fixed #1600 -- Renamed ManyToMany to ManyToManyRel so people get a clearer ↵Adrian Holovaty
error if they use ManyToMany instead of ManyToManyField git-svn-id: http://code.djangoproject.com/svn/django/trunk@2648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28Fixed #1548 -- Improved caching of related objects, so when clist = ↵Adrian Holovaty
poll.get_choice_list(), each choice in clist has its poll cache filled. Thanks, Ned Batchelder git-svn-id: http://code.djangoproject.com/svn/django/trunk@2574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24Removed stray 'print' statement in ManyToManyField.flatten_data(). Thanks, ↵Adrian Holovaty
burivuh git-svn-id: http://code.djangoproject.com/svn/django/trunk@2558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-20Fixed bug in [2531]. Thanks, NedAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-19Simplified two unnecessary list comprehensions in core/meta/__init__.py. ↵Adrian Holovaty
Thanks, Ned Batchelder git-svn-id: http://code.djangoproject.com/svn/django/trunk@2531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01Fixed #1213 -- Changed value of NOT_PROVIDED so that it's not a string, to ↵Adrian Holovaty
prevent possible (but highly unlikely) collisions. Thanks, akaihola git-svn-id: http://code.djangoproject.com/svn/django/trunk@2454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25Changed get_object() not to use 'ordering' parameter from the model. Thanks, ↵Adrian Holovaty
Ned Batchelder. Also updated some unit tests to show correct DoesNotExist output git-svn-id: http://code.djangoproject.com/svn/django/trunk@2392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25Rolled back [2390] temporarily to test against some other edge casesAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25Changed get_object() not to use 'ordering' parameter from the model. Thanks, ↵Adrian Holovaty
Ned Batchelder git-svn-id: http://code.djangoproject.com/svn/django/trunk@2390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18Removed unnecessary line in d.c.meta.fields, due to [2342]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18Fixed #1038 -- Changed ForeignKey to calculate verbose_name by looking at ↵Adrian Holovaty
its field name rather than the model of the related object. Thanks, Esaj git-svn-id: http://code.djangoproject.com/svn/django/trunk@2342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18Fixed #1148 -- Fixed off-by-one error for some databases in ↵Adrian Holovaty
get_DATEFIELD_list() at the edge of a year. Thanks, Hugo git-svn-id: http://code.djangoproject.com/svn/django/trunk@2338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17Fixed #1296 -- Made SlugField maxlength configurable. Thanks, MattAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30Made small improvement to function_get_date_listAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15Fixed #1064 -- Fixed bug in set_many_to_many() for ManyToManyField pointing ↵Adrian Holovaty
at a OneToOneField. Thanks, bruce@cubik.org and Luminosity git-svn-id: http://code.djangoproject.com/svn/django/trunk@1976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06Fixed #1181 -- get_in_bulk no longer fails on empty input. Also added unit ↵Adrian Holovaty
tests. Thanks, akaihola git-svn-id: http://code.djangoproject.com/svn/django/trunk@1834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-17Fixed #1075 -- Fixed bug in edit_inline. Thanks, Eric MoritzAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-14added a missed translation to the admin (the error message when you try to ↵Georg Bauer
add a duplicate record) git-svn-id: http://code.djangoproject.com/svn/django/trunk@1644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-10Negligible refactoring in django.core.meta.fields and ↵Adrian Holovaty
django.contrib.admin.views.main. Taken from #1020. Refs #1020 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Fixed #967 -- 'tables' parameter in DB API is now only quoted if needed. ↵Adrian Holovaty
Thanks, Russell Keith-Magee git-svn-id: http://code.djangoproject.com/svn/django/trunk@1581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Fixed #1017 -- Admin now selects single choice for ForeignKey fields if only ↵Adrian Holovaty
one choice is available. Thanks for reporting, Eugene git-svn-id: http://code.djangoproject.com/svn/django/trunk@1575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Fixed inconsistent spacing in core/meta/fields.pyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Fixed #927 -- Non-integer primary keys save() method now worksAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-05Fixed bug in get_next_by_FOO/get_previous_by_FOO methods that caused a ↵Jacob Kaplan-Moss
database error when using those methods along with joining lookup contraints (i.e. "obj.get_next_by_pub_date(related__id__in=some_list)") git-svn-id: http://code.djangoproject.com/svn/django/trunk@1550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-05Fixed #982 -- Added '__ne__' support for Django models, which apparently ↵Adrian Holovaty
wasn't working on Python 2.3 (?) git-svn-id: http://code.djangoproject.com/svn/django/trunk@1547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04reverted changes from [1534] and [1536] regarding ticket #966Georg Bauer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04fixes #989 - new 'no' translations for JavaScriptGeorg Bauer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed #452 -- Fixed bug in generated DB API for models that have two ↵Adrian Holovaty
ManyToManyFields to the same related model. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Small fix to a comment in django.core.meta.initAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed #757: manually set AutoField values are now respected; also added unit ↵Jacob Kaplan-Moss
test to verify the correct behavior. Thanks, cygnus. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30Fixed #251 -- Added OR support to queries, via the new 'complex' DB API ↵Adrian Holovaty
keyword argument. Updated docs and added unit tests. Also removed old, undocumented '_or' parameter. Thanks, Hugo. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30Fixed #736 -- Changed behavior of QueryDict items() to be more consistent, ↵Adrian Holovaty
fixed mutability holes, gave MultiValueDict many more dictionary methods and added unit tests. Thanks, Kieran Holland. This is slightly backwards-incompatible if you happened to rely on the behavior of QueryDict.items(), which is highly unlikely. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-29Fixed error in raw_id_admin on ManyToManyFields caused by [1434] -- they ↵Adrian Holovaty
weren't working. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25MERGED NEW-ADMIN BRANCH (except for po/mo files, which will come in a ↵Adrian Holovaty
separate commit) git-svn-id: http://code.djangoproject.com/svn/django/trunk@1434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25Added translation strings to django/core/meta/fields.py. Taken from new-admin.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1423 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21fixed a bug that prevented the unique validation to workGeorg Bauer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21Fixed #800 -- Fixed bug in treatement of underscores and percent signs in ↵Adrian Holovaty
SQLite backend. In order to do this, changed OPERATOR_MAPPING in DB backends to include a format string of the field value, because ESCAPE comes after the field value. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21Fixed bug for OneToOneFields in the admin -- the ↵Adrian Holovaty
manipulator_validator_unique wasn't doing the correct lookup git-svn-id: http://code.djangoproject.com/svn/django/trunk@1322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21Fixed #527 -- Changed method_get_related() to use rel.get_related_field() ↵Adrian Holovaty
instead of rel.field_name git-svn-id: http://code.djangoproject.com/svn/django/trunk@1319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20Gave EmailField a get_internal_type() method and removed it from DATA_TYPES ↵Adrian Holovaty
in all the database backends git-svn-id: http://code.djangoproject.com/svn/django/trunk@1316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20Fixed #527 and #768 -- Fixed longstanding bug with OneToOneFields. All unit ↵Adrian Holovaty
tests now pass git-svn-id: http://code.djangoproject.com/svn/django/trunk@1313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17Fixed #815 -- 'select' keyword in DB API calls is now quoted correctly. ↵Adrian Holovaty
Thanks, Hugo git-svn-id: http://code.djangoproject.com/svn/django/trunk@1274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14Fixed #121 -- Django now quotes all names in SQL queries. Also added unit ↵Adrian Holovaty
tests to confirm. Thanks, Robin Munn and Sune. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10Fixed #724 -- Ensured get_next_by_FOO() and get_previous_by_FOO() methods ↵Adrian Holovaty
don't skip or duplicate any records in the case of duplicate values. Thanks for reporting the bug, mattycakes@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@1155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09Fixed #683 -- Lightly refactored meta.fields.Field to add an attname attribute.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06Fixed #312 -- Fixed bug when adding images in the admin when edit_inline and ↵Adrian Holovaty
width field is set. Thanks, nichyoung git-svn-id: http://code.djangoproject.com/svn/django/trunk@1104 bcc190cf-cafb-0310-a4f2-bffc1f526a37