Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a couple of typos.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5e2f5d146618f1a21695d0df78853641aad5a154 1 parent f51205d
Ramiro Morales authored December 03, 2011
2  django/core/management/base.py
@@ -119,7 +119,7 @@ class BaseCommand(object):
119 119
     option_list = (
120 120
         make_option('-v', '--verbosity', action='store', dest='verbosity', default='1',
121 121
             type='choice', choices=['0', '1', '2', '3'],
122  
-            help='Verbosity level; 0=minimal output, 1=normal output, 2=verbose output 3=very verbose output'),
  122
+            help='Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output'),
123 123
         make_option('--settings',
124 124
             help='The Python path to a settings module, e.g. "myproject.settings.main". If this isn\'t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.'),
125 125
         make_option('--pythonpath',
2  tests/regressiontests/i18n/forms.py
@@ -18,7 +18,7 @@ class SelectDateForm(forms.Form):
18 18
     date_field = forms.DateField(widget=SelectDateWidget)
19 19
 
20 20
 class CompanyForm(forms.ModelForm):
21  
-    cents_payed = forms.DecimalField(max_digits=4, decimal_places=2, localize=True)
  21
+    cents_paid = forms.DecimalField(max_digits=4, decimal_places=2, localize=True)
22 22
     products_delivered = forms.IntegerField(localize=True)
23 23
     date_added = forms.DateTimeField(localize=True)
24 24
 
4  tests/regressiontests/i18n/models.py
@@ -10,8 +10,8 @@ class TestModel(models.Model):
10 10
 class Company(models.Model):
11 11
     name = models.CharField(max_length=50)
12 12
     date_added = models.DateTimeField(default=datetime(1799,1,31,23,59,59,0))
13  
-    cents_payed = models.DecimalField(max_digits=4, decimal_places=2)
  13
+    cents_paid = models.DecimalField(max_digits=4, decimal_places=2)
14 14
     products_delivered = models.IntegerField()
15 15
 
16 16
     class Meta:
17  
-        verbose_name = _('Company')
  17
+        verbose_name = _('Company')
6  tests/regressiontests/i18n/tests.py
@@ -610,13 +610,13 @@ def test_localized_input(self):
610 610
             form6 = CompanyForm({
611 611
                 'name': u'acme',
612 612
                 'date_added': datetime.datetime(2009, 12, 31, 6, 0, 0),
613  
-                'cents_payed': decimal.Decimal('59.47'),
  613
+                'cents_paid': decimal.Decimal('59.47'),
614 614
                 'products_delivered': 12000,
615 615
             })
616 616
             self.assertEqual(True, form6.is_valid())
617 617
             self.assertEqual(
618 618
                 form6.as_ul(),
619  
-                u'<li><label for="id_name">Name:</label> <input id="id_name" type="text" name="name" value="acme" maxlength="50" /></li>\n<li><label for="id_date_added">Date added:</label> <input type="text" name="date_added" value="31.12.2009 06:00:00" id="id_date_added" /></li>\n<li><label for="id_cents_payed">Cents payed:</label> <input type="text" name="cents_payed" value="59,47" id="id_cents_payed" /></li>\n<li><label for="id_products_delivered">Products delivered:</label> <input type="text" name="products_delivered" value="12000" id="id_products_delivered" /></li>'
  619
+                u'<li><label for="id_name">Name:</label> <input id="id_name" type="text" name="name" value="acme" maxlength="50" /></li>\n<li><label for="id_date_added">Date added:</label> <input type="text" name="date_added" value="31.12.2009 06:00:00" id="id_date_added" /></li>\n<li><label for="id_cents_paid">Cents paid:</label> <input type="text" name="cents_paid" value="59,47" id="id_cents_paid" /></li>\n<li><label for="id_products_delivered">Products delivered:</label> <input type="text" name="products_delivered" value="12000" id="id_products_delivered" /></li>'
620 620
             )
621 621
             self.assertEqual(localize_input(datetime.datetime(2009, 12, 31, 6, 0, 0)), '31.12.2009 06:00:00')
622 622
             self.assertEqual(datetime.datetime(2009, 12, 31, 6, 0, 0), form6.cleaned_data['date_added'])
@@ -889,7 +889,7 @@ def test_lazy(self):
889 889
         tm.save()
890 890
 
891 891
     def test_safestr(self):
892  
-        c = Company(cents_payed=12, products_delivered=1)
  892
+        c = Company(cents_paid=12, products_delivered=1)
893 893
         c.name = SafeUnicode(u'Iñtërnâtiônàlizætiøn1')
894 894
         c.save()
895 895
         c.name = SafeString(u'Iñtërnâtiônàlizætiøn1'.encode('utf-8'))

0 notes on commit 5e2f5d1

Please sign in to comment.
Something went wrong with that request. Please try again.