1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

[1.7.x] Fixed several typos in Django

Backport of 1dcc603eff from master
This commit is contained in:
Alex Gaynor
2014-05-28 17:39:14 -07:00
committed by Tim Graham
parent d099c03789
commit 3d98941d5c
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