Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
55e4edd7
Commit
55e4edd7
authored
Oct 04, 2019
by
Bryan BRANCOTTE
Browse files
Contribution is by default public, closing #108
parent
5b01e461
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/viralhostrangedb/forms.py
View file @
55e4edd7
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment