Commit 55e4edd7 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Contribution is by default public, closing #108

parent 5b01e461
......@@ -789,9 +789,10 @@ class DataSourceNameModelForm(forms.ModelForm):
helper = FormHelper()
helper.form_tag = False
def __init__(self, owner=None, *args, **kwargs):
def __init__(self, owner=None, initial=None, *args, **kwargs):
self.owner = owner
super().__init__(*args, **kwargs)
initial.setdefault("public", True)
super().__init__(initial=initial, *args, **kwargs)
def save(self, commit=True):
instance = super().save(commit=False)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment