Django

Code

Changeset 8872

Show
Ignore:
Timestamp:
09/02/08 14:33:56 (3 months ago)
Author:
jacob
Message:

Fixed #8788: fixed a few typoes in [8805]. Thanks, Matthew Flanagan and mir.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/forms/models.py

    r8854 r8872  
    231231                # This is an extra field that's not on the ModelForm, ignore it 
    232232                continue 
    233             # MySQL can't handle ... WHERE pk IS NULL, so make sure we don't  
     233            # MySQL can't handle ... WHERE pk IS NULL, so make sure we 
    234234            # don't generate queries of that form. 
    235235            is_null_pk = f.primary_key and self.cleaned_data[name] is None 
     
    255255                qs = qs.exclude(pk=self.instance.pk) 
    256256                 
    257             # This cute trick with extra/values is the most efficiant way to 
     257            # This cute trick with extra/values is the most efficient way to 
    258258            # tell if a particular query returns any results. 
    259259            if qs.extra(select={'a': 1}).values('a').order_by(): 
  • django/trunk/docs/topics/forms/modelforms.txt

    r8864 r8872  
    338338----------------------------- 
    339339 
    340 You can overide the ``clean()`` method on a model form to provide additional 
    341 validation in the same way you can on a normal form. However, by default the 
     340You can override the ``clean()`` method on a model form to provide additional 
     341validation in the same way you can on a normal form. However, by default the 
    342342``clean()`` method validates the uniqueness of fields that are marked as unique 
    343 on the model, and those marked as unque_together, if you would like to overide 
    344 the ``clean()`` method and maintain the default validation you must call the 
     343or unique_together on the model. Therefore, if you would like to override 
     344the ``clean()`` method and maintain the default validation, you must call the 
    345345parent class's ``clean()`` method. 
    346346