Commits

Osiloke Emoekpere  committed 6b4e094

added default restricted list

  • Participants
  • Parent commits 142507a
  • Branches enhancements

Comments (0)

Files changed (1)

File widget/forms.py

 class WidgetForm(forms.ModelForm):
 
     def __init__(self, *args, **kwargs):
-        restrict_list = kwargs.pop("restrict_list", None)
+        restrict_list = kwargs.pop("restrict_list", settings.RESTRICTED_WIDGETS)
         super(WidgetForm, self).__init__(*args, **kwargs)
         self.uuid = str(uuid4())
         self.fields["page"].queryset = Page.objects.get_query_set()