BUGFIX: api for collection and widgets so that they work with the django
rest framework