Skip to content

Commit f547ae5

Browse files
committed
New Markdown syntax
1 parent 90f4742 commit f547ae5

File tree

2 files changed

+35
-44
lines changed

2 files changed

+35
-44
lines changed

CHANGELOG.md

Lines changed: 26 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,52 @@
1-
webstack-django-sorting Changelog
2-
=================================
1+
# webstack-django-sorting Changelog
32

4-
v3.0.3
5-
------
3+
## v3.0.4
64

75
- Migraged from rye to uv
86
- Supports Django 6
97

10-
v3.0.2
11-
------
8+
## v3.0.3
9+
10+
- Migraged from rye to uv
11+
- Supports Django 6
12+
13+
## v3.0.2
1214

1315
- Removed ipdb import. Thanks zerolab.
1416

15-
v3.0.1
16-
------
17+
## v3.0.1
1718

1819
- Adjustments to CI
1920

20-
v3.0.0
21-
------
21+
## v3.0.0
2222

2323
Released on August 19th, 2024
2424

2525
- New optional paramater to set default sort order on first click of a column.
2626
Thanks to @RhinoW.
2727
- Migrate test project to rye
2828

29-
v2.4.0
30-
------
29+
## v2.4.0
3130

3231
- Migrate library to rye
3332

34-
v2.3.1
35-
------
33+
## v2.3.1
3634

3735
- Fix release v2.3.0 on the supported Django version (v5).
3836

39-
v2.3.0
40-
------
37+
## v2.3.0
4138

4239
- Support Django 5.0
4340
- Fix nulls=last persistency in template (#26). Thanks @sandre35.
4441
- Migrate `testproj` to Django v5.0 (fix deprecated)
4542
- Add home view to `testproj` to list all views
4643
- Fix HTML of test views
4744

48-
v2.2.1
49-
------
45+
## v2.2.1
5046

5147
- Minor change to `README.md`
5248

53-
v2.2.0
54-
------
49+
## v2.2.0
5550

5651
No build.
5752

@@ -62,36 +57,30 @@ No build.
6257
- Add more examples for Jinja
6358
- Various cleanup
6459

65-
v2.1.1
66-
------
60+
## v2.1.1
6761

6862
- Fix deprecated import of Markup from Jinja2
6963

70-
v2.1.0
71-
------
64+
## v2.1.0
7265

7366
- Add sorting by nulls first or last by @manderj.
7467

75-
v2.0.3
76-
------
68+
## v2.0.3
7769

7870
- Added Django 4.0 support. Thanks to David Smith.
7971
- Fix Jinja2 is required (#19)
8072

81-
v2.0.2
82-
------
73+
## v2.0.2
8374

8475
- Fix missing other GET params in anchors
8576
- Fix path to jinja2 tags in testproj
8677
- Fix trailing commas in classifiers
8778

88-
v2.0.1
89-
------
79+
## v2.0.1
9080

9181
- Fix trailing commas in classifiers (`setup.cfg`).
9282

93-
v2.0.0
94-
------
83+
## v2.0.0
9584

9685
Released on February 23th, 2021
9786

@@ -110,24 +99,21 @@ Released on February 23th, 2021
11099
- Remove support of Python 2 and upgrade to Django >=3.0
111100
- Various cleanups
112101

113-
v1.0.2
114-
------
102+
## v1.0.2
115103

116104
Released on September 23th 2020
117105

118106
- Fix cache issue with translatable anchors. Thanks Kim Wong.
119107
- Updated README.md
120108

121-
v1.0.1
122-
------
109+
## v1.0.1
123110

124111
Released on March 1st 2017
125112

126113
- Improved README
127114
- Don't return None when queryset is empty (closes #8)
128115

129-
v1.0.0
130-
------
116+
## v1.0.0
131117

132118
Released on January 24th 2017
133119

@@ -138,17 +124,15 @@ Released on January 24th 2017
138124
- Improved Python 3 support
139125
- Add first tests
140126

141-
v0.5.0
142-
------
127+
## v0.5.0
143128

144129
Released on January 3rd 2017
145130

146131
- Restore compatibility with Django v1.8 and lower
147132
- Fix reading of README.rst with Python 3
148133
- Cleanup in test project
149134

150-
v0.4.3
151-
------
135+
## v0.4.3
152136

153137
Released on December 10th 2016
154138

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,12 @@ SORTING_CSS_CLASS_DESC = "sorted-desc"
200200
This will produce `<a class="sorted-asc" ...>` when sorted ascending, allowing you to style the indicator with CSS:
201201

202202
```css
203-
.sorted-asc::after { content: " \2191"; } /* Up arrow */
204-
.sorted-desc::after { content: " \2193"; } /* Down arrow */
203+
.sorted-asc::after {
204+
content: " \2191";
205+
} /* Up arrow */
206+
.sorted-desc::after {
207+
content: " \2193";
208+
} /* Down arrow */
205209
```
206210

207211
### Error handling
@@ -213,11 +217,13 @@ This will produce `<a class="sorted-asc" ...>` when sorted ascending, allowing y
213217
By default, clicking a column header sorts ascending first. You can change this per-column to sort descending on first click (useful for date columns where you typically want most recent first):
214218

215219
Django template:
220+
216221
```html
217222
{% anchor created_date _("Created") "desc" %}
218223
```
219224

220225
Jinja2 template:
226+
221227
```html
222228
{{ sorting_anchor(request, "created_date", "Created", "desc") }}
223229
```
@@ -236,6 +242,7 @@ need_python_sorting(queryset, "my_property")
236242
```
237243

238244
If you must sort by a computed value on large datasets, consider:
245+
239246
- Adding a database field to store the computed value
240247
- Using database-level annotations
241248
- Limiting the queryset size before sorting

0 commit comments

Comments
 (0)