-
-
Save esseti/8157cfc2a19c3c3ff5032c72ce8f981d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyWidget(forms.widgets.CheckboxSelectMultiple): | |
template_name = 'web_admin/partial/checkbox.html' | |
option_template_name = 'web_admin/partial/panel_item_p.html' | |
def get_context(self, name, value, attrs): | |
ctx = super().get_context(name, value, attrs) | |
# update the context adding the qs | |
ctx.update(dict(qs=self.qs)) | |
return ctx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment