Changeset 7789 for django/trunk/tests/regressiontests/fixtures_regress
- Timestamp:
- 06/29/08 19:38:14 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/fixtures_regress/models.py
r7595 r7789 21 21 name = models.CharField(max_length=20, null=True) 22 22 owner = models.ForeignKey(User, null=True) 23 23 24 24 def __unicode__(self): 25 25 # Oracle doesn't distinguish between None and the empty string. … … 39 39 Absolute.load_count += 1 40 40 41 class Parent(models.Model): 42 name = models.CharField(max_length=10) 43 44 class Child(Parent): 45 data = models.CharField(max_length=10) 46 41 47 42 48 __test__ = {'API_TESTS':""" … … 45 51 # Load a fixture that uses PK=1 46 52 >>> management.call_command('loaddata', 'sequence', verbosity=0) 47 53 48 54 # Create a new animal. Without a sequence reset, this new object 49 55 # will take a PK of 1 (on Postgres), and the save will fail. … … 62 68 63 69 ############################################### 64 # Regression test for ticket #6436 -- 70 # Regression test for ticket #6436 -- 65 71 # os.path.join will throw away the initial parts of a path if it encounters 66 # an absolute path. This means that if a fixture is specified as an absolute path, 72 # an absolute path. This means that if a fixture is specified as an absolute path, 67 73 # we need to make sure we don't discover the absolute path in every fixture directory. 68 74 … … 95 101 >>> sys.stderr = savestderr 96 102 103 ############################################### 104 # Test for ticket #7565 -- PostgreSQL sequence resetting checks shouldn't 105 # ascend to parent models when inheritance is used (since they are treated 106 # individually). 107 108 >>> management.call_command('loaddata', 'model-inheritance.json', verbosity=0) 109 97 110 """}
