widgets: add template name to let map widgets be overridden (#22202)
This commit is contained in:
parent
7f2fd893d0
commit
c8baf0fdaf
|
@ -2160,6 +2160,8 @@ $(function() {
|
|||
|
||||
|
||||
class MapWidget(CompositeWidget):
|
||||
template_name = 'qommon/forms/widgets/map.html'
|
||||
|
||||
def __init__(self, name, value=None, **kwargs):
|
||||
CompositeWidget.__init__(self, name, value, **kwargs)
|
||||
self.add(HiddenWidget, 'latlng', value=value)
|
||||
|
|
Loading…
Reference in New Issue