[boardgames] Add ability to add new variants to form

This commit is contained in:
2026-07-04 11:28:41 -04:00
parent 2c481bd53a
commit 7559ce7824
7 changed files with 180 additions and 7 deletions

View File

@ -0,0 +1,9 @@
from django import forms
class VariantSelectWidget(forms.SelectMultiple):
template_name = "boardgames/widgets/variant_select.html"
def get_context(self, name, value, attrs):
context = super().get_context(name, value, attrs)
return context