Wq.db

Latest version: v2.1.0

Safety actively analyzes 688792 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 8

0.8.2

This release of **wq.db** brings some enhancements to the "attachment" modules and a few minor bug fixes.

Attachment Enhancements
- [locate](https://wq.io/docs/locate)'s `Location` instances for located models can be loaded directly into the map for editing via a special `edit.geojson` URL. This works well with the updated [wq/map.js](https://wq.io/docs/map-js) in [wq.app 0.8.1](https://github.com/wq/wq.app/releases/v0.8.1). Note that as part of this enhancement, the `Location` model is no longer registered with the API by default (meaning `Location` instances will not be stored offline by default).
- [files](https://wq.io/docs/files)' `File` instances can be uploaded as "attachments" making files a bit more like the [patterns](https://wq.io/docs/about-patterns) modules (bc14412). There is a little bit of customization necessary to get this to work - see the [Species Tracker source](https://github.com/powered-by-wq/species.wq.io/blob/v0.2.0/db/reports/serializers.py#L1-L15) for an example.
- `create_attachment()` and `update_attachment()` hooks to facilitate customized [patterns](https://wq.io/docs/about-patterns) model workflows (0edf702)

Bug Fixes
- Fix [wq configuration object](https://wq.io/docs/config) not listing parent models correctly (due to `get_all_related_objects()` change in Django 1.8 (20cd687))
- Ensure server-side [postsave](https://wq.io/docs/views) 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)

0.8.1

**wq.db 0.8.1** brings a number of minor enhancements and bug fixes to [wq.db 0.8.0](https://github.com/wq/wq.db/releases/v0.8.0).
- `./manage.py dump_config` can include an AMD wrapper with the `--format amd` option (46b2e4d33fcee9d410af10e6972fea474ca13873).
- More hooks to customize `postsave` functionality on the server side (d36e91e7a0136a852a5cf454a6ea410f47ade8fc)
- Various minor bug fixes

0.8.0

> 2. wq 0.8 (waiting on wq.app 0.8 and wq/wq9)
> 3. Patterns API Improvements (wq/wq.db35, wq/wq.app38)

0.7.2

This release of [**wq.db**](https://wq.io/wq.db) brings a couple of minor improvements to v0.7:
- [**chart module**](https://wq.io/docs/chart): Compatibility with v0.3.x of [Django REST Pandas](https://github.com/wq/django-rest-pandas), which was updated for compatibility with Django REST Framework 3. (wq.db itself will be updated to DRF3 in v0.8.0). Note that the former `ChartSerializer` is now split into two: a `ChartModelSerializer` for the model fields and a `ChartPandasSerializer` for the Pandas serialization.
- [**identify pattern**](https://wq.io/docs/identify): Consistent ordering of identifiers, e.g. for rendering in detail views. The default is to order with primary identifiers first, then by authority, then by name. The new `WQ_IDENTIFIER_ORDER` setting can be used to override the default ordering.
- [**mark pattern**](https://wq.io/docs/markdown): Don't crash when there are no markdown entries attached to a model.
- Cleaned up and organized tests

0.7.1

- Encoded URLs in `pages_info` object (0e1de5823272b7090149d1dc42c3bae2bd2dc64e; see [wq.app 0.7.1 release notes](https://github.com/wq/wq.app/releases/v0.7.1))
- Fix recursion error in `multi.json` (8b1550f)
- Ensure [relate](http://wq.io/docs/relate)'s cached `dict` representations are updated after a `save()` (3e5ce5c)
- More tests

0.7.0

**wq.db 0.7.0** introduces Python 3 and Django 1.7 support, as well as a number of minor bug fixes and API cleanup.

API Improvements
- Support for Python 3 (2). Python 2.7 is still supported (for now), but we strongly recommend using Python 3 for new projects.
- Support for Django 1.7, including new [swapper](https://github.com/wq/django-swappable-models)-enabled Django 1.7 migrations (#28)
- Ability to use [chart](http://wq.io/docs/chart) for arbitrary time series models in addition to [vera](#29).
- Continued to expand test suite (13), wq.app compatibility (25), and documentation (wq/wq7)
- Various minor bug fixes

New Features
- New [mark](http://wq.io/docs/markdown) pattern to support attaching one or more markdown snippets to models (#30)
- `dump_config` command for generating a static [wq config](http://wq.io/docs/config) object to speed up application load (ed14f600694016ab66f7d4b81d50327b17ef3da9). Requires Django 1.7.
- `set_extra_config()` method to define arbitrary wq config properties (570b9ad1d5bef4b9f28c9be1d954b5a0734823d7)

Removed Features
- A number of contrib modules have been extracted into separate PyPI packages (29). This includes [vera](http://wq.io/vera), [dbio](http://wq.io/dbio), and the [media thumbnailer](https://github.com/wq/django-media-thumbnailer) that was previously part of [files](http://wq.io/docs/files). If your code depends on any of these modules, you will need to install them separately and update your import statements (e.g. `from wq.db.contrib.vera import models` -> `from vera import models`.
- Removed support for auto-discovering `views.py` and `serializers.py`. All of your auto-discoverable router configurations should be defined in `rest.py` (12)

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.