Fixed #16198 -- Ported the model_forms doctests. Our long national nightmare is over. Oh, and we have always been at war with doctests. Thanks to Peter van Kampen and Gregor Müllegger for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-06-10 14:08:51 +00:00
parent 4dac0883f0
commit aa5506d6f6
4 changed files with 1283 additions and 1415 deletions

View File

@ -262,6 +262,7 @@ answer newbie questions, and generally made Django that much better:
junzhang.jn@gmail.com junzhang.jn@gmail.com
Xia Kai <http://blog.xiaket.org/> Xia Kai <http://blog.xiaket.org/>
Antti Kaihola <http://djangopeople.net/akaihola/> Antti Kaihola <http://djangopeople.net/akaihola/>
Peter van Kampen
Bahadır Kandemir <bahadir@pardus.org.tr> Bahadır Kandemir <bahadir@pardus.org.tr>
Karderio <karderio@gmail.com> Karderio <karderio@gmail.com>
Nagy Károly <charlie@rendszergazda.com> Nagy Károly <charlie@rendszergazda.com>

View File

@ -1,44 +0,0 @@
from django import forms
from django.forms import ModelForm
from models import (Product, Price, Book, DerivedBook, ExplicitPK, Post,
DerivedPost, Writer, FlexibleDatePost)
class ProductForm(ModelForm):
class Meta:
model = Product
class PriceForm(ModelForm):
class Meta:
model = Price
class BookForm(ModelForm):
class Meta:
model = Book
class DerivedBookForm(ModelForm):
class Meta:
model = DerivedBook
class ExplicitPKForm(ModelForm):
class Meta:
model = ExplicitPK
fields = ('key', 'desc',)
class PostForm(ModelForm):
class Meta:
model = Post
class DerivedPostForm(ModelForm):
class Meta:
model = DerivedPost
class CustomWriterForm(ModelForm):
name = forms.CharField(required=False)
class Meta:
model = Writer
class FlexDatePostForm(ModelForm):
class Meta:
model = FlexibleDatePost

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff