0001-remove-regex-pattern-on-string-widgets-30419.patch
wcs/qommon/form.py | ||
---|---|---|
900 | 900 |
get_response().add_javascript(['qommon.geolocation.js']) |
901 | 901 | |
902 | 902 |
def render_content(self): |
903 |
if self.field and self.field.validation and not 'pattern' in self.attrs: |
|
904 |
self.attrs['pattern'] = self.field.validation |
|
905 | 903 |
s = StringWidget.render_content(self) |
906 | 904 |
return s |
907 | 905 | |
908 |
- |