django/tests/modeltests
Gary Wilson Jr c2ba59fc1d Removed oldforms, validators, and related code:
* Removed `Manipulator`, `AutomaticManipulator`, and related classes.
 * Removed oldforms specific bits from model fields:
   * Removed `validator_list` and `core` arguments from constructors.
   * Removed the methods:
     * `get_manipulator_field_names`
     * `get_manipulator_field_objs`
     * `get_manipulator_fields`
     * `get_manipulator_new_data`
     * `prepare_field_objs_and_params`
     * `get_follow`
   * Renamed `flatten_data` method to `value_to_string` for better alignment with its use by the serialization framework, which was the only remaining code using `flatten_data`.
 * Removed oldforms methods from `django.db.models.Options` class: `get_followed_related_objects`, `get_data_holders`, `get_follow`, and `has_field_type`.
 * Removed oldforms-admin specific options from `django.db.models.fields.related` classes: `num_in_admin`, `min_num_in_admin`, `max_num_in_admin`, `num_extra_on_change`, and `edit_inline`.
 * Serialization framework
   * `Serializer.get_string_value` now calls the model fields' renamed `value_to_string` methods.
   * Removed a special-casing of `models.DateTimeField` in `core.serializers.base.Serializer.get_string_value` that's handled by `django.db.models.fields.DateTimeField.value_to_string`.
 * Removed `django.core.validators`:
   * Moved `ValidationError` exception to `django.core.exceptions`.
   * For the couple places that were using validators, brought over the necessary code to maintain the same functionality.
 * Introduced a SlugField form field for validation and to compliment the SlugField model field (refs #8040).
 * Removed an oldforms-style model creation hack (refs #2160).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 07:19:44 +00:00
..
basic Fixed #7718 -- Added a naive implementation of sorted() for Python 2.3 compatibility, and modified test cases to import the function when required. 2008-07-13 08:48:18 +00:00
choices Fixed #7913 -- Corrected backwards incompatible parts of [7977] when optgroup handling was added to field choices (Ticket #4412). Thanks to Michael Elsdorfer (miracle2k) for the report and patch. 2008-07-27 07:22:39 +00:00
custom_columns Minor correction for [8325]. 2008-08-12 14:19:32 +00:00
custom_managers Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms `FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. 2007-08-05 05:14:46 +00:00
custom_methods Fixed #7560 -- Moved a lot of the value conversion preparation for 2008-07-29 05:09:29 +00:00
custom_pk Replaced dict reprs in tests with explicit looks at each key. This should fix many spurious test failures on other VMs (first noticed on Jython). 2008-03-19 19:11:51 +00:00
delete Fixed #7825 - modeltests/delete tests failing after NFA merge, and improved documentation of these tests. 2008-07-21 17:28:21 +00:00
empty Fixed #6068 -- Updated docstrings in model tests to make the documentation 2007-12-01 21:18:45 +00:00
field_defaults Fixed #7464 -- Fixed the psycopg2 backend to handle SafeString values as 2008-08-25 04:13:27 +00:00
field_subclassing Removed oldforms, validators, and related code: 2008-08-27 07:19:44 +00:00
files Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
fixtures Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
force_insert_update There are some variations in the printed names of exceptions between Oracle and 2008-08-20 18:50:06 +00:00
generic_relations Fixed #5937 -- When filtering on generic relations, restrict the target objects to those with the right content type. 2008-08-27 05:22:33 +00:00
get_latest Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
get_object_or_404 Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
get_or_create There are some variations in the printed names of exceptions between Oracle and 2008-08-20 18:50:06 +00:00
invalid_models Removed oldforms, validators, and related code: 2008-08-27 07:19:44 +00:00
lookup Fixed #6523 -- Use the correct cast on field types for PostgreSQL when 2008-08-08 20:09:53 +00:00
m2m_and_m2o Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms `FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. 2007-08-05 05:14:46 +00:00
m2m_intermediary Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
m2m_multiple Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
m2m_recursive Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
m2m_through Removed trailing whitespace in a few files. 2008-08-26 04:55:56 +00:00
m2o_recursive Fixed #6365 -- Added `blank=True` to parent attribute of `m2o_recursive` model example, thanks dgrant. 2008-01-13 02:19:06 +00:00
m2o_recursive2 Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms `FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. 2007-08-05 05:14:46 +00:00
many_to_many Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
many_to_one Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
many_to_one_null Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
model_forms Fixed #7888 -- Handle model inheritance with model formsets correctly. Thanks bpeschier for the report. 2008-08-25 03:51:25 +00:00
model_formsets Fixed #8542 -- Made the model_formstests tests from [8528] a little less 2008-08-25 23:56:39 +00:00
model_inheritance Updated the tests. 2008-08-09 17:19:44 +00:00
mutually_referential Removed oldforms, validators, and related code: 2008-08-27 07:19:44 +00:00
one_to_one There are some variations in the printed names of exceptions between Oracle and 2008-08-20 18:50:06 +00:00
or_lookups Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
order_with_respect_to Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
ordering Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
pagination Removed several deprecated features for 1.0 (refs #7830): 2008-08-02 04:56:11 +00:00
properties Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms `FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. 2007-08-05 05:14:46 +00:00
reserved_names Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
reverse_lookup Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
save_delete_hooks Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms `FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. 2007-08-05 05:14:46 +00:00
select_related Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
serializers Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
signals Fixed #8285: signal handlers that aren't functions work under DEBUG. This slightly loosens the sanity check, but things that are valid under production shouldn't fail under debug. 2008-08-25 18:24:05 +00:00
str Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms `FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. 2007-08-05 05:14:46 +00:00
test_client Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
transactions Removed the mysql_old backend. It smells bad and has no friends. 2008-07-18 17:38:53 +00:00
update Updated the tests. 2008-08-09 17:19:44 +00:00
user_commands Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets. 2008-08-12 14:15:38 +00:00
__init__.py MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. 2006-05-02 01:31:56 +00:00