diff options
Diffstat (limited to 'archaeological_operations/widgets.py')
| -rw-r--r-- | archaeological_operations/widgets.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/archaeological_operations/widgets.py b/archaeological_operations/widgets.py index f2a2d3d66..7519bf0a8 100644 --- a/archaeological_operations/widgets.py +++ b/archaeological_operations/widgets.py @@ -66,6 +66,11 @@ class OAWidget(forms.TextInput):      def render(self, name, value, attrs=None, renderer=None):          if not value:              value = "" +        attrs.update(self.attrs) +        if "class" not in attrs: +            attrs["class"] = "widget-oa" +        else: +            attrs["class"] += " widget-oa"          final_attrs = flatatt(self.build_attrs(attrs, {"name": name, "value": value}))          oa_prefix = get_current_profile(force=False).operation_prefix or ""          dct = { | 
