django-mongodbforms
django-mongodbforms copied to clipboard
Problem with MapWidget
Hi, I'm using the MapWidget and I'm having a problem in this line:
value = list(value.items())
When creating an empty MapWidget value is None, so value.items() throws an exception.
A possible fix could be doing something like this, which is working for me: value = {} if value is None else value