Ticket #8788: typos.diff
File typos.diff, 1.6 KB (added by , 16 years ago) |
---|
-
django/forms/models.py
244 244 if self.instance.pk is not None: 245 245 qs = qs.exclude(pk=self.instance.pk) 246 246 247 # This cute trick with extra/values is the most effici ant way to247 # This cute trick with extra/values is the most efficient way to 248 248 # tell if a particular query returns any results. 249 249 if qs.extra(select={'a': 1}).values('a').order_by(): 250 250 model_name = capfirst(self.instance._meta.verbose_name) -
docs/topics/forms/modelforms.txt
337 337 Overriding the clean() method 338 338 ----------------------------- 339 339 340 You can over ide the ``clean()`` method on a model form to provide additional340 You can override the ``clean()`` method on a model form to provide additional 341 341 validation in the same way you can on a normal form. However, by default the 342 342 ``clean()`` method validates the uniqueness of fields that are marked as unique 343 on the model, and those marked as un que_together, if you would like to overide343 on the model, and those marked as unique_together, if you would like to override 344 344 the ``clean()`` method and maintain the default validation you must call the 345 345 parent class's ``clean()`` method. 346 346