Fixed several typos in Django

This commit is contained in:
Alex Gaynor 2014-05-28 17:39:14 -07:00
parent e79725cdf9
commit 1dcc603eff
34 changed files with 40 additions and 40 deletions

View file

@ -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