mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed several typos in Django
This commit is contained in:
parent
e79725cdf9
commit
1dcc603eff
34 changed files with 40 additions and 40 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue