Code

Changes between Version 43 and Version 44 of NewformsHOWTO


Ignore:
Timestamp:
07/31/08 11:25:47 (6 years ago)
Author:
kratorius
Comment:

Fixed a typo where ModelForm was referred to be in django.contrib.admin namespace

Legend:

Unmodified
Added
Removed
Modified
  • NewformsHOWTO

    v43 v44  
    526526{{{ 
    527527#!python 
    528 class MyModelForm(models.ModelForm): 
     528from django import forms 
     529from django.contrib import admin 
     530 
     531class MyModelForm(forms.ModelForm): 
    529532    def clean(self): 
    530533        pass # Your custom validation here