Update document OCR content view to a CBV.

This commit is contained in:
Roberto Rosario
2016-03-16 16:40:17 -04:00
parent 0ecfb83d14
commit e2bfece9ff
3 changed files with 24 additions and 27 deletions

View File

@@ -18,7 +18,7 @@ class DocumentContentForm(forms.Form):
single textarea widget
"""
def __init__(self, *args, **kwargs):
self.document = kwargs.pop('document', None)
self.document = kwargs.pop('instance', None)
super(DocumentContentForm, self).__init__(*args, **kwargs)
content = []
self.fields['contents'].initial = ''