django-mongodbforms icon indicating copy to clipboard operation
django-mongodbforms copied to clipboard

Problem with MapWidget

Open danieldabate opened this issue 11 years ago • 0 comments

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

danieldabate avatar Jan 22 '14 22:01 danieldabate