Changeset 4796
- Timestamp:
- 03/23/07 15:17:04 (2 years ago)
- Files:
-
- django/trunk/tests/modeltests/empty/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/field_defaults/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/fixtures/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/generic_relations/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/get_object_or_404/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/get_or_create/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/m2m_and_m2o/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/m2m_recursive/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/manipulators/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/model_forms/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/pagination/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/select_related/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/serializers/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/test_client/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/validation/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/modeltests/empty/models.py
r3661 r4796 1 1 """ 2 Empty model tests2 39. Empty model tests 3 3 4 4 These test that things behave sensibly for the rare corner-case of a model with django/trunk/tests/modeltests/field_defaults/models.py
r3661 r4796 1 1 """ 2 3 1. Callable defaults2 32. Callable defaults 3 3 4 4 You can pass callable objects as the ``default`` parameter to a field. When django/trunk/tests/modeltests/fixtures/models.py
r4716 r4796 1 1 """ 2 3 9. Fixtures.2 37. Fixtures. 3 3 4 4 Fixtures are a way of loading data into the database in bulk. Fixure data django/trunk/tests/modeltests/generic_relations/models.py
r4428 r4796 1 1 """ 2 3 3. Generic relations2 34. Generic relations 3 3 4 4 Generic relations let an object have a foreign key to any object through a django/trunk/tests/modeltests/get_object_or_404/models.py
r4759 r4796 1 1 """ 2 3 4. DB-API Shortcuts2 35. DB-API Shortcuts 3 3 4 4 get_object_or_404 is a shortcut function to be used in view functions for django/trunk/tests/modeltests/get_or_create/models.py
r3661 r4796 1 1 """ 2 3 2. get_or_create()2 33. get_or_create() 3 3 4 4 get_or_create() does what it says: it tries to look up an object with the given django/trunk/tests/modeltests/m2m_and_m2o/models.py
r3661 r4796 1 1 """ 2 2 8. Many-to-many and many-to-one relationships to the same table2 29. Many-to-many and many-to-one relationships to the same table 3 3 4 4 Make sure to set ``related_name`` if you use relationships to the same table. django/trunk/tests/modeltests/m2m_recursive/models.py
r3661 r4796 1 1 """ 2 2 7. Many-to-many relationships between the same two tables2 28. Many-to-many relationships between the same two tables 3 3 4 4 In this example, A Person can have many friends, who are also people. Friendship is a django/trunk/tests/modeltests/manipulators/models.py
r3661 r4796 1 1 """ 2 2 6. Default manipulators2 27. Default manipulators 3 3 4 4 Each model gets an AddManipulator and ChangeManipulator by default. django/trunk/tests/modeltests/model_forms/models.py
r4556 r4796 1 1 """ 2 3 4. Generating HTML forms from models2 36. Generating HTML forms from models 3 3 4 4 Django provides shortcuts for creating Form objects from a model class and a django/trunk/tests/modeltests/pagination/models.py
r4041 r4796 1 1 """ 2 29. Object pagination2 30. Object pagination 3 3 4 4 Django provides a framework for paginating a list of objects in a few lines django/trunk/tests/modeltests/select_related/models.py
r4645 r4796 1 1 """ 2 XXX. Tests for ``select_related()``2 40. Tests for ``select_related()`` 3 3 4 4 ``select_related()`` follows all relationships and pre-caches any foreign key django/trunk/tests/modeltests/serializers/models.py
r4610 r4796 1 1 """ 2 XXX. Serialization2 41. Serialization 3 3 4 4 ``django.core.serializers`` provides interfaces to converting Django querysets django/trunk/tests/modeltests/test_client/models.py
r4774 r4796 1 1 """ 2 3 9. Testing using the Test Client2 38. Testing using the Test Client 3 3 4 4 The test client is a class that can act like a simple django/trunk/tests/modeltests/validation/models.py
r4592 r4796 1 1 """ 2 3 0. Validation2 31. Validation 3 3 4 4 This is an experimental feature!
