Skip to content

Commit 31443dd

Browse files
committed
Prepare release 2.9.3 (Fixes #318 and #326).
1 parent e39586e commit 31443dd

File tree

14 files changed

+36
-25
lines changed

14 files changed

+36
-25
lines changed

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Ihor Marhitych, @dest81
3434
Rafał Furmański, @r4fek
3535

3636
Main developer
37-
Daniel Rus Morales, @danirus
37+
Daniela Rus Morales, @danirus

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## [2.9.3] - 2021-09-22
4+
5+
* Fixes issue in 'models.publish_or_unpublish_nested_comments', when calling the update method on an empty QuerySet. See [issue-318](https://github.com/danirus/django-comments-xtd/issues/318). Thanks to @abiatarfestus, @ironworld and @Khoding.
6+
* Enhance the queryset in notify_comment_followers using distinct when possible. And fallback to the previous queryset when distinct is not supported, as is the case for sqlite. See [issue-326](https://github.com/danirus/django-comments-xtd/issues/326). Thanks to @enzedonline.
7+
38
## [2.9.2] - 2021-06-19
49

510
* Fixes issue with nested_count XtdComment's attribute being wrongly computed when comment threads are more than 2 level deep and have more than 1 thread. See [PR-312](https://github.com/danirus/django-comments-xtd/pull/312).

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2020, Daniel Rus Morales
1+
Copyright (c) 2021, Daniela Rus Morales
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

django_comments_xtd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get_form():
1818
return import_string(settings.COMMENTS_XTD_FORM_CLASS)
1919

2020

21-
VERSION = (2, 9, 2, 'f', 0) # following PEP 440
21+
VERSION = (2, 9, 3, 'f', 0) # following PEP 440
2222

2323

2424
def get_version():

django_comments_xtd/tests/test_forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_get_comment_model(self):
3232

3333
def test_get_comment_create_data(self):
3434
# as it's used in django_comments.views.comments
35-
data = {"name": "Daniel",
35+
data = {"name": "Daniela",
3636
"email": "[email protected]",
3737
"followup": True,
3838
"reply_to": 0, "level": 1, "order": 1,

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
# General information about the project.
5050
project = u'django-comments-xtd'
51-
copyright = u'2021, Daniel Rus Morales'
51+
copyright = u'2021, Daniela Rus Morales'
5252

5353
# The version info for the project you're documenting, acts as replacement for
5454
# |version| and |release|, also used in various other places throughout the
@@ -58,7 +58,7 @@
5858
# The short X.Y version.
5959
version = '2.9'
6060
# The full version, including alpha/beta/rc tags.
61-
release = '2.9.2'
61+
release = '2.9.3'
6262

6363
# The language for content autogenerated by Sphinx. Refer to documentation
6464
# for a list of supported languages.
@@ -186,7 +186,7 @@
186186
# (source start file, target name, title, author, documentclass [howto/manual]).
187187
latex_documents = [
188188
('index', 'django-comments-xtd.tex', u'django-comments-xtd Documentation',
189-
u'Daniel Rus Morales', 'manual'),
189+
u'Daniela Rus Morales', 'manual'),
190190
]
191191

192192
# The name of an image file (relative to this directory) to place at the top of
@@ -219,7 +219,7 @@
219219
# (source start file, name, description, authors, manual section).
220220
man_pages = [
221221
('index', 'django-comments-xtd', u'django-comments-xtd Documentation',
222-
[u'Daniel Rus Morales'], 1)
222+
[u'Daniela Rus Morales'], 1)
223223
]
224224

225225

docs/index.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ the once official `Django Comments Framework
1919

2020
.. note::
2121

22-
This documentation represents the current version, v2.9.2, of
22+
This documentation represents the current version, v2.9.3, of
2323
django-comments-xtd. For old versions of the documentation:
2424

2525
* v2.8.5: https://django-comments-xtd.readthedocs.io/en/2.8.5/
@@ -96,6 +96,12 @@ specific features, or check out the use cases to see how others customize it.
9696
Change Log
9797
==========
9898

99+
[2.9.3] - 2021-09-22
100+
--------------------
101+
102+
* Fixes issue in 'models.publish_or_unpublish_nested_comments', when calling the update method on an empty QuerySet. See [issue-318](https://github.com/danirus/django-comments-xtd/issues/318). Thanks to @abiatarfestus, @ironworld and @Khoding.
103+
* Enhance the queryset in notify_comment_followers using distinct when possible. And fallback to the previous queryset when distinct is not supported, as is the case for sqlite. See [issue-326](https://github.com/danirus/django-comments-xtd/issues/326). Thanks to @enzedonline.
104+
99105
[2.9.2] - 2021-06-19
100106
--------------------
101107

docs/javascript.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ Django will fetch them from there when rendering the article's detail page:
133133

134134
{% block extra-js %}
135135
[...]
136-
<script src="{% static 'django_comments_xtd/js/vendor~plugin-2.9.2.js' %}"></script>
137-
<script src="{% static 'django_comments_xtd/js/plugin-2.9.2.js' %}"></script>
136+
<script src="{% static 'django_comments_xtd/js/vendor~plugin-2.9.3.js' %}"></script>
137+
<script src="{% static 'django_comments_xtd/js/plugin-2.9.3.js' %}"></script>
138138
{% endblock extra-js %}
139139

140140

@@ -155,8 +155,8 @@ Plugin sources live inside the **static** directory of django-comments-xtd:
155155
│   ├── commentform.jsx
156156
│   ├── index.js
157157
│   └── lib.js
158-
├── vendor~plugin-2.9.1.js
159-
└── plugin-2.9.1.js
158+
├── vendor~plugin-2.9.3.js
159+
└── plugin-2.9.3.js
160160
161161
1 directory, 7 files
162162

docs/tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,8 @@ Now let's edit ``blog/post_detail.html`` and make it look as follows:
11321132
<script
11331133
type="text/javascript"
11341134
src="{% url 'javascript-catalog' %}"></script>
1135-
<script src="{% static 'django_comments_xtd/js/vendor~plugin-2.js' %}"></script>
1136-
<script src="{% static 'django_comments_xtd/js/plugin-2.9.2.js' %}"></script>
1135+
<script src="{% static 'django_comments_xtd/js/vendor~plugin-2.9.3.js' %}"></script>
1136+
<script src="{% static 'django_comments_xtd/js/plugin-2.9.3.js' %}"></script>
11371137
<script>
11381138
$(function() {
11391139
$('[data-toggle="tooltip"]').tooltip({html: true});

example/comp/templates/articles/article_detail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ <h2>{{ object.title }}</h2>
5656
polling_interval: 5000
5757
};
5858
</script>
59-
<script src="{% static 'django_comments_xtd/js/vendor~plugin-2.9.2.js' %}"></script>
60-
<script src="{% static 'django_comments_xtd/js/plugin-2.9.2.js' %}"></script>
59+
<script src="{% static 'django_comments_xtd/js/vendor~plugin-2.9.3.js' %}"></script>
60+
<script src="{% static 'django_comments_xtd/js/plugin-2.9.3.js' %}"></script>
6161
{% endblock %}

0 commit comments

Comments
 (0)