diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-05-28 17:39:14 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-05-28 17:39:14 -0700 |
commit | 1dcc603efff8229838f27019668d864a0bcbfa59 (patch) | |
tree | 8c67764f440faeb095143498383ca57ecd4f09be /tests/model_package | |
parent | e79725cdf90e3271626ed66f70b63640d3fcc521 (diff) | |
download | django-1dcc603efff8229838f27019668d864a0bcbfa59.tar.gz |
Fixed several typos in Django
Diffstat (limited to 'tests/model_package')
-rw-r--r-- | tests/model_package/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/model_package/tests.py b/tests/model_package/tests.py index a352b57478..7dc1f84a35 100644 --- a/tests/model_package/tests.py +++ b/tests/model_package/tests.py @@ -8,7 +8,7 @@ from .models.publication import Publication from .models.article import Article -class Advertisment(models.Model): +class Advertisement(models.Model): customer = models.CharField(max_length=100) publications = models.ManyToManyField( "model_package.Publication", null=True, blank=True @@ -33,10 +33,10 @@ class ModelPackageTests(TestCase): self.assertEqual(a.sites.count(), 1) # Regression for #12245 - Models can exist in the test package, too - ad = Advertisment.objects.create(customer="Lawrence Journal-World") + ad = Advertisement.objects.create(customer="Lawrence Journal-World") ad.publications.add(p) - ad = Advertisment.objects.get(id=ad.pk) + ad = Advertisement.objects.get(id=ad.pk) self.assertEqual(ad.publications.count(), 1) # Regression for #12386 - field names on the autogenerated intermediate |