summaryrefslogtreecommitdiff
path: root/django/core/meta
AgeCommit message (Collapse)Author
2005-11-05Added meta.Admin list_select_related option, which specifies to use ↵Adrian Holovaty
select_related in the change-list query git-svn-id: http://code.djangoproject.com/svn/django/trunk@1092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04Merged i18n branch into the trunk! Fixes #65, and perhaps some others. NB: ↵Jacob Kaplan-Moss
this means that the i18n branch is now obsolete and will be made read-only. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22Fixed #681 -- get_in_bulk no longer assumes PK fields are called id. Also ↵Adrian Holovaty
added unit tests to confirm. Thanks, Jeremy Dunck git-svn-id: http://code.djangoproject.com/svn/django/trunk@991 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20Fixed #317 -- SlugField now accepts hyphens. Thanks, SuneAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15Fixed #628 -- Django no longer overwrites model class docstrings if they're ↵Adrian Holovaty
provided git-svn-id: http://code.djangoproject.com/svn/django/trunk@878 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-12Fixed #589 -- Added FilePathField. It's available as an ORM field and as a ↵Adrian Holovaty
standalone field in django.core.formfields. Thanks, jay@skabber.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-07Fixed #586 -- Fixed bug in raw_id_admin caused by [785]. Thanks for the ↵Adrian Holovaty
heads-up, slashzero git-svn-id: http://code.djangoproject.com/svn/django/trunk@800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06Fixed #595 -- Fixed error when sorting API results descending with custom ↵Adrian Holovaty
'select' parameters. Thanks for the patch, Robert Wittams git-svn-id: http://code.djangoproject.com/svn/django/trunk@792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06Made raw_id_admin work with non-integer primary keysAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-28Fixed #553 -- Added django.core.meta.fields.Field.get_internal_type() hook, ↵Adrian Holovaty
for creating custom meta.Field subclasses. Thanks, wojtek3 git-svn-id: http://code.djangoproject.com/svn/django/trunk@713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26Subclassed models now use their own class name (or explicitly defined ↵Adrian Holovaty
verbose_name) as the verbose_name, not the parent's verbose_name. See also #558 and [697]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26Fixed #558 -- Subclassed models now use their own class name (or explicitly ↵Adrian Holovaty
defined module_name) as the module_name, not the parent's module_name git-svn-id: http://code.djangoproject.com/svn/django/trunk@697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25Fixed #468 -- Model classes now get an accessor method to get the ↵Adrian Holovaty
human-readable value for each field that has 'choices' set. Thanks, Robert git-svn-id: http://code.djangoproject.com/svn/django/trunk@687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25Fixed #556 -- ManyToManyField join tables no longer assume the primary keys ↵Adrian Holovaty
of both associated tables are integers. Also added unit tests to confirm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-15Fixed "unique" validator for fields with relations.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@643 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-13Fixed metasystem bug when using get_related_many_to_many() method with a ↵Adrian Holovaty
custom-named primary key. Thanks, stane git-svn-id: http://code.djangoproject.com/svn/django/trunk@639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02Fixed #404 -- Fixed random ordering in MySQL by abstracting random function ↵Adrian Holovaty
into db backend modules. Thanks, mattycakes@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02Fixed bug in [601]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@604 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02Fixed bug in has_related_links=True, which is legacy and shouldn't be used ↵Adrian Holovaty
by anybody git-svn-id: http://code.djangoproject.com/svn/django/trunk@601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-31Fixed #413 -- get_file_url() for FileFields now uses proper slashes on ↵Adrian Holovaty
Windows. Thanks, Adam Endicott git-svn-id: http://code.djangoproject.com/svn/django/trunk@579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29Fixed small bug in manipulator handling of one-to-one-related foreign keysAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29Fixed bug in metasystem manipulator_validator_unique_for_date(), related to ↵Adrian Holovaty
[549] git-svn-id: http://code.djangoproject.com/svn/django/trunk@571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29Fixed bug in metasystem method_get_next_in_order and ↵Adrian Holovaty
method_get_previous_in_order, related to [549] git-svn-id: http://code.djangoproject.com/svn/django/trunk@570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-25Fixed #122 -- BIG, BACKWARDS-INCOMPATIBLE CHANGE. Changed model syntax to ↵Adrian Holovaty
use fieldname=FieldClass() syntax. See ModelSyntaxChangeInstructions for important information on how to change your models git-svn-id: http://code.djangoproject.com/svn/django/trunk@549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19Fixed #350 -- 'offset' DB API parameter now works in MySQL 3. Tests from ↵Adrian Holovaty
[540] pass. Thanks, ronan@cremin.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-17Fixed bug in manipulator_valid_rel_key() -- it assumed the related object's ↵Adrian Holovaty
primary key was called 'id' git-svn-id: http://code.djangoproject.com/svn/django/trunk@530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16Small formatting change to validation error in [516], to be consistent with ↵Adrian Holovaty
other validation errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16Added raw_id_admin support to ManyToManyField objects; fixes #260Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Changed meta.py save() code from [507] to work under sqlite. All tests now ↵Adrian Holovaty
pass in all 3 database backends. git-svn-id: http://code.djangoproject.com/svn/django/trunk@510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #320 -- Changed save() code so that it doesn't rely on ↵Adrian Holovaty
cursor.rowcount. MySQLdb sets cursor.rowcount to 0 in an UPDATE statement even if the record already exists. Now save() does a SELECT query to find out whether a record with the primary key already exists. git-svn-id: http://code.djangoproject.com/svn/django/trunk@507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Improved error handling for invalid model parameters that aren't custom ↵Adrian Holovaty
functions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #316 -- Added special-case for MySQL microseconds, so that it doesn't ↵Adrian Holovaty
throw a warning when microseconds are given. git-svn-id: http://code.djangoproject.com/svn/django/trunk@497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-11Changed timestamp and time typecasting to preserve microseconds. Added unit ↵Adrian Holovaty
tests to test this behavior, and added a db_typecast unit test module. Refs #306. git-svn-id: http://code.djangoproject.com/svn/django/trunk@487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #81 -- Admin now supports primary_key=True for non-integer fields. ↵Adrian Holovaty
Note that you'll have to make a change to your database if you're using a previous Django installation and want to use non-integer primary key fields. See the BackwardsIncompatibleChanges wiki page for info. git-svn-id: http://code.djangoproject.com/svn/django/trunk@469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Refactored the way save() works so that non-integer primary keys are now ↵Adrian Holovaty
possible. custom_pk unit tests (from [458]) now pass. Refs #81. git-svn-id: http://code.djangoproject.com/svn/django/trunk@462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Undid [455] -- it's not a good enough solution for what I'm trying to doAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Slightly refactored metasystem -- changed Field pre_save() hooks to ↵Adrian Holovaty
pre_save_add(), in preparation for some bigger changes. Refs #81. git-svn-id: http://code.djangoproject.com/svn/django/trunk@455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Simplified metasystem get_db_prep_save() hook so that it doesn't take an ↵Adrian Holovaty
'add' parameter -- it wasn't being used, anyway. git-svn-id: http://code.djangoproject.com/svn/django/trunk@454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #154 -- Fixed constraint error when deleting an object with a ↵Adrian Holovaty
many-to-many field git-svn-id: http://code.djangoproject.com/svn/django/trunk@447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09Fixed #211 -- edit_inline_type is deprecated, in favor of edit_inline ↵Adrian Holovaty
itself. For example, instead of 'edit_inline=True, edit_inline_type=meta.TABULAR', use 'edit_inline=meta.TABULAR'. git-svn-id: http://code.djangoproject.com/svn/django/trunk@440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-08Companion checkin to [432]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05Changed default ManyToOne num_in_admin from 0 to 3, to help avoid confusion ↵Adrian Holovaty
when people forget to set num_in_admin git-svn-id: http://code.djangoproject.com/svn/django/trunk@409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Fixed #257 -- Empty model modules no longer cause an error. Thanks, Bill de ↵Adrian Holovaty
hÓra git-svn-id: http://code.djangoproject.com/svn/django/trunk@397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Refactored meta.py -- created a django.core.meta package, with init.py and ↵Adrian Holovaty
fields.py git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37