File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 11Changes
22=======
33
4+ 0.35.0
5+ ------
6+
7+ * Improved ``ForeignKey`` deprecation warning (courtesy @tonybaloney).
8+ * Added ``piccolo schema generate`` which creates a Piccolo schema from an
9+ existing database.
10+ * Added ``piccolo tester run`` which is a wrapper around pytest, and
11+ temporarily sets ``PICCOLO_CONF``, so a test database is used.
12+ * Added the ``get`` convenience method (courtesy @aminalaee). It returns the
13+ first matching record, or ``None`` if there's no match. For example:
14+
15+ .. code-block:: python
16+
17+ manager = await Manager.objects().get(Manager.name == 'Guido').run()
18+
19+ # This is equivalent to:
20+ manager = await Manager.objects().where(Manager.name == 'Guido').first().run()
21+
4220.34.0
523------
624Added the ``get_or_create`` convenience method (courtesy @aminalaee). Example
Original file line number Diff line number Diff line change 1- __VERSION__ = "0.34 .0"
1+ __VERSION__ = "0.35 .0"
You can’t perform that action at this time.
0 commit comments