Skip to content

Commit 5e1f2e5

Browse files
Prepare 0.22
1 parent cc315d2 commit 5e1f2e5

File tree

15 files changed

+214
-10
lines changed

15 files changed

+214
-10
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ are used for versioning (schema follows below):
1515
0.3.4 to 0.4).
1616
- All backwards incompatible changes are mentioned in this document.
1717

18-
0.21.1
19-
------
18+
0.22
19+
----
2020
2021-03-xx
2121

2222
.. note::
@@ -29,6 +29,8 @@ are used for versioning (schema follows below):
2929
- Add `tzinfo` check for better date vs datetime determination.
3030
- Broader `EmptySearch` compatibility with `elasticsearch_dsl.Search`.
3131
- Remove old Django code from docs.
32+
- Allow more specific targeting for nested sort fields.
33+
- Add more tests.
3234

3335
0.21
3436
----

docs/changelog.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ are used for versioning (schema follows below):
1515
0.3.4 to 0.4).
1616
- All backwards incompatible changes are mentioned in this document.
1717

18+
0.22
19+
----
20+
2021-03-xx
21+
22+
.. note::
23+
24+
Release dedicated to my dear son, Raffi, who turns 16 at the end of the
25+
month. Happy birthday, dear Raffi.
26+
27+
- Make it easier to override the `DictionaryProxy` by moving it to the
28+
scope of the `BaseDocumentViewSet`.
29+
- Add `tzinfo` check for better date vs datetime determination.
30+
- Broader `EmptySearch` compatibility with `elasticsearch_dsl.Search`.
31+
- Remove old Django code from docs.
32+
- Allow more specific targeting for nested sort fields.
33+
- Add more tests.
34+
1835
0.21
1936
----
2037
2021-02-04

docs/index.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,16 @@ Main features and highlights
8484
Do you need a similar tool for GraphQL? Check `graphene-elastic
8585
<https://github.com/barseghyanartur/graphene-elastic>`__.
8686

87-
Demo
88-
====
87+
Demos
88+
=====
89+
Online demo
90+
-----------
91+
Check the `live demo app <https://django-elasticsearch-dsl-drf.herokuapp.com>`__
92+
(Django 3.1 + Django REST Framework 3.12 + Elasticsearch 7.5) hosted on Heroku
93+
and bonsai.io.
94+
95+
Local demo
96+
----------
8997
A frontend demo (React based) is available. See the `dedicated docs
9098
<https://github.com/barseghyanartur/django-elasticsearch-dsl-drf/blob/master/examples/frontend/README.rst>`_
9199
for more information.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 3.1.6 on 2021-03-25 22:10
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('books', '0019_merge_20210219_1534'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='order',
15+
name='finished',
16+
field=models.BooleanField(default=False),
17+
),
18+
]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 3.1.6 on 2021-03-25 22:25
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('books', '0020_order_finished'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='city',
15+
name='capital',
16+
field=models.BooleanField(default=False),
17+
),
18+
]

examples/simple/books/models/city.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class City(models.Model):
2727
max_digits=19,
2828
default=0
2929
)
30+
capital = models.BooleanField(default=False)
3031

3132
class Meta:
3233
"""Meta options."""

examples/simple/books/models/order.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Order(models.Model):
1313
on_delete=models.CASCADE
1414
)
1515
lines = models.ManyToManyField('books.OrderLine', blank=True)
16+
finished = models.BooleanField(default=False)
1617
created = models.DateField(auto_now_add=True)
1718
updated = models.DateField(auto_now=True)
1819

examples/simple/search_indexes/serializers/city.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Meta:
1818
'info',
1919
'country',
2020
'location',
21+
'capital',
2122
'boolean_list',
2223
'datetime_list',
2324
'float_list',

scripts/runtests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
xvfb-run python runtests.py
2+
xvfb-run python runtests.py "$@"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import find_packages, setup
44

5-
version = '0.21.1'
5+
version = '0.22'
66

77
DOCS_TRANSFORMATIONS = (
88
(

0 commit comments

Comments
 (0)