Permalink
Browse files

Fixed #16198 -- Ported the model_forms doctests. Our long national ni…

…ghtmare 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
  • Loading branch information...
1 parent 4dac088 commit aa5506d6f69180820db8f1811b4c8780d39a5733 @freakboy3742 freakboy3742 committed Jun 10, 2011
Showing with 1,283 additions and 1,415 deletions.
  1. +1 −0 AUTHORS
  2. +0 −44 tests/modeltests/model_forms/mforms.py
  3. +0 −1,364 tests/modeltests/model_forms/models.py
  4. +1,282 −7 tests/modeltests/model_forms/tests.py
View
@@ -262,6 +262,7 @@ answer newbie questions, and generally made Django that much better:
junzhang.jn@gmail.com
Xia Kai <http://blog.xiaket.org/>
Antti Kaihola <http://djangopeople.net/akaihola/>
+ Peter van Kampen
Bahadır Kandemir <bahadir@pardus.org.tr>
Karderio <karderio@gmail.com>
Nagy Károly <charlie@rendszergazda.com>
@@ -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
Oops, something went wrong.

0 comments on commit aa5506d

Please sign in to comment.