Assume "local only" flag should be ON by default, for new objects
i.e. if that is a thing, for the given master view
This commit is contained in:
parent
0c96062618
commit
2e92f561d8
|
@ -1402,6 +1402,10 @@ class MasterView(View):
|
||||||
if self.secure_global_objects:
|
if self.secure_global_objects:
|
||||||
if not self.has_perm('view_global'):
|
if not self.has_perm('view_global'):
|
||||||
form.remove_field('local_only')
|
form.remove_field('local_only')
|
||||||
|
elif self.creating:
|
||||||
|
# assume this flag should be ON by default - it is hoped this
|
||||||
|
# is the safer option and would help prevent unwanted mistakes
|
||||||
|
form.set_default('local_only', True)
|
||||||
|
|
||||||
def configure_mobile_form(self, form):
|
def configure_mobile_form(self, form):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue