Skip to content

Commit

Permalink
Fix to optional collection fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Littman committed Jun 12, 2018
1 parent 2b7f103 commit 8b60bf6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sfm/ui/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class CollectionTwitterUserTimelineForm(BaseCollectionForm):

def __init__(self, *args, **kwargs):
super(CollectionTwitterUserTimelineForm, self).__init__(*args, **kwargs)
self.helper.layout[0][4].extend(('incremental',
self.helper.layout[0][5].extend(('incremental',
'deleted_accounts_option', 'suspended_accounts_option',
'protected_accounts_options'))

Expand Down Expand Up @@ -214,7 +214,7 @@ class CollectionTwitterSearchForm(BaseCollectionForm):

def __init__(self, *args, **kwargs):
super(CollectionTwitterSearchForm, self).__init__(*args, **kwargs)
self.helper.layout[0][4].extend(('incremental',))
self.helper.layout[0][5].extend(('incremental',))

if self.instance and self.instance.harvest_options:
harvest_options = json.loads(self.instance.harvest_options)
Expand Down Expand Up @@ -267,7 +267,7 @@ class CollectionFlickrUserForm(BaseCollectionForm):

def __init__(self, *args, **kwargs):
super(CollectionFlickrUserForm, self).__init__(*args, **kwargs)
self.helper.layout[0][4].extend(('incremental',))
self.helper.layout[0][5].extend(('incremental',))

if self.instance and self.instance.harvest_options:
harvest_options = json.loads(self.instance.harvest_options)
Expand All @@ -290,7 +290,7 @@ class CollectionWeiboTimelineForm(BaseCollectionForm):

def __init__(self, *args, **kwargs):
super(CollectionWeiboTimelineForm, self).__init__(*args, **kwargs)
self.helper.layout[0][4].extend(('incremental',))
self.helper.layout[0][5].extend(('incremental',))

if self.instance and self.instance.harvest_options:
harvest_options = json.loads(self.instance.harvest_options)
Expand All @@ -313,7 +313,7 @@ class CollectionWeiboSearchForm(BaseCollectionForm):

def __init__(self, *args, **kwargs):
super(CollectionWeiboSearchForm, self).__init__(*args, **kwargs)
self.helper.layout[0][4].extend(('incremental',))
self.helper.layout[0][5].extend(('incremental',))

if self.instance and self.instance.harvest_options:
harvest_options = json.loads(self.instance.harvest_options)
Expand All @@ -336,7 +336,7 @@ class CollectionTumblrBlogPostsForm(BaseCollectionForm):

def __init__(self, *args, **kwargs):
super(CollectionTumblrBlogPostsForm, self).__init__(*args, **kwargs)
self.helper.layout[0][4].extend(('incremental',))
self.helper.layout[0][5].extend(('incremental',))

if self.instance and self.instance.harvest_options:
harvest_options = json.loads(self.instance.harvest_options)
Expand Down

0 comments on commit 8b60bf6

Please sign in to comment.