diff --git a/tests/modeltests/model_forms/tests.py b/tests/modeltests/model_forms/tests.py
index b67c160..0831035 100644
|
a
|
b
|
from django.utils.unittest import skipUnless
|
| 14 | 14 | from modeltests.model_forms.models import (Article, ArticleStatus, |
| 15 | 15 | BetterWriter, BigInt, Book, Category, CommaSeparatedInteger, |
| 16 | 16 | CustomFieldForExclusionModel, DerivedBook, DerivedPost, ExplicitPK, |
| 17 | | FlexibleDatePost, ImageFile, ImprovedArticle, |
| 18 | | ImprovedArticleWithParentLink, Inventory, OptionalImageFile, PhoneNumber, |
| 19 | | Post, Price, Product, TextFile, Writer, WriterProfile, |
| 20 | | test_images) |
| | 17 | FlexibleDatePost, ImprovedArticle, ImprovedArticleWithParentLink, |
| | 18 | Inventory, PhoneNumber, Post, Price, Product, TextFile, Writer, |
| | 19 | WriterProfile, test_images) |
| 21 | 20 | |
| | 21 | if test_images: |
| | 22 | from modeltests.model_forms.models import ImageFile, OptionalImageFile |
| | 23 | class ImageFileForm(forms.ModelForm): |
| | 24 | class Meta: |
| | 25 | model = ImageFile |
| | 26 | |
| | 27 | class OptionalImageFileForm(forms.ModelForm): |
| | 28 | class Meta: |
| | 29 | model = OptionalImageFile |
| 22 | 30 | |
| 23 | 31 | class ProductForm(forms.ModelForm): |
| 24 | 32 | class Meta: |
| … |
… |
class BigIntForm(forms.ModelForm):
|
| 149 | 157 | class Meta: |
| 150 | 158 | model = BigInt |
| 151 | 159 | |
| 152 | | class ImageFileForm(forms.ModelForm): |
| 153 | | class Meta: |
| 154 | | model = ImageFile |
| 155 | | |
| 156 | | class OptionalImageFileForm(forms.ModelForm): |
| 157 | | class Meta: |
| 158 | | model = OptionalImageFile |
| 159 | | |
| 160 | 160 | class ModelFormWithMedia(forms.ModelForm): |
| 161 | 161 | class Media: |
| 162 | 162 | js = ('/some/form/javascript',) |