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:
Lance Edgar 2019-10-29 19:58:08 -05:00
parent 0c96062618
commit 2e92f561d8

View file

@ -1402,6 +1402,10 @@ class MasterView(View):
if self.secure_global_objects:
if not self.has_perm('view_global'):
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):
"""