PEP8 cleanup, unused import removal

This commit is contained in:
Roberto Rosario
2014-11-02 21:20:29 -04:00
parent ba1729106f
commit 9f2692d36a
24 changed files with 20 additions and 44 deletions

View File

@@ -71,7 +71,7 @@ class AddMetadataForm(forms.Form):
def __init__(self, *args, **kwargs):
document_type = kwargs.pop('document_type')
super(AddMetadataForm, self).__init__(*args, **kwargs)
self.fields['metadata_type'].queryset=document_type.metadata_type.all()
self.fields['metadata_type'].queryset = document_type.metadata_type.all()
metadata_type = forms.ModelChoiceField(queryset=MetadataType.objects.all(), label=_(u'Metadata type'))