wq.db 0.8.2
This release of wq.db brings some enhancements to the “attachment” modules and a few minor bug fixes.
Attachment Enhancements
- locate’s
Location
instances for located models can be loaded directly into the map for editing via a specialedit.geojson
URL. This works well with the updated wq/map.js in wq.app 0.8.1. Note that as part of this enhancement, theLocation
model is no longer registered with the API by default (meaningLocation
instances will not be stored offline by default). - files’
File
instances can be uploaded as “attachments” making files a bit more like the patterns modules (bc14412). There is a little bit of customization necessary to get this to work - see the Species Tracker source for an example. create_attachment()
andupdate_attachment()
hooks to facilitate customized patterns model workflows (0edf702)
Bug Fixes
- Fix wq configuration object not listing parent models correctly (due to
get_all_related_objects()
change in Django 1.8 (20cd687)) - Ensure server-side postsave is triggered on
update()
(450ee3a) - Fix for template vars in Python 2 + Django 1.8 (30e11d9)
- update
router_info
template variable name (b4b5daa) and include parent page identifier in list-by-parent-item context (ac92abd)