mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #21298 -- Fixed E301 pep8 warnings
This commit is contained in:
parent
317040a73b
commit
c3aa2948c6
83 changed files with 180 additions and 2 deletions
|
@ -26,6 +26,7 @@ from .models import (Article, ArticleStatus, BetterWriter, BigInt, Book,
|
|||
|
||||
if test_images:
|
||||
from .models import ImageFile, OptionalImageFile
|
||||
|
||||
class ImageFileForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = ImageFile
|
||||
|
@ -208,6 +209,7 @@ class ModelFormWithMedia(forms.ModelForm):
|
|||
css = {
|
||||
'all': ('/some/form/css',)
|
||||
}
|
||||
|
||||
class Meta:
|
||||
model = TextFile
|
||||
fields = '__all__'
|
||||
|
@ -1722,6 +1724,7 @@ class OldFormForXTests(TestCase):
|
|||
|
||||
class CategoryForm(forms.ModelForm):
|
||||
description = forms.CharField()
|
||||
|
||||
class Meta:
|
||||
model = Category
|
||||
fields = ['description', 'url']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue