fix tests

This commit is contained in:
Élie Bouttier 2016-07-12 00:56:50 +02:00
parent 09d87f3af7
commit 86c2a42e58

View File

@ -88,7 +88,8 @@ class TopicMixin(object):
class TopicFormMixin(object): class TopicFormMixin(object):
def get_form_kwargs(self): def get_form_kwargs(self):
kwargs = super(TopicFormMixin, self).get_form_kwargs() kwargs = super(TopicFormMixin, self).get_form_kwargs()
kwargs.update({'site_id': get_current_site(self.request).id}) if self.get_form_class() == TopicCreateForm:
kwargs.update({'site_id': get_current_site(self.request).id})
return kwargs return kwargs