Skip to content

Commit 8b1b296

Browse files
committed
Move again a few files
1 parent af85e7d commit 8b1b296

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The project provides examples of integration with Django and Jinja2 templates.
112112

113113
```python
114114
from jinja2.environment import Environment
115-
from webstack_django_sorting.jinja2_globals import sorting_anchor, sort_queryset
115+
from webstack_django_sorting.templatetags.jinja2_globals import sorting_anchor, sort_queryset
116116

117117
class JinjaEnvironment(Environment):
118118
def __init__(self, **kwargs):

webstack_django_sorting/common.py renamed to webstack_django_sorting/templatetags/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Common to Django tags (sorting_tags) and Jinja2 globals (jinja2_globals)
3+
"""
14
from urllib.parse import urlencode
25
from operator import attrgetter
36

webstack_django_sorting/jinja2_globals.py renamed to webstack_django_sorting/templatetags/jinja2_globals.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from jinja2 import Markup
22

3-
from .settings import SORT_DIRECTIONS
43
from . import common
54

65

File renamed without changes.

webstack_django_sorting/templatetags/sorting_tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from django.http import Http404
33
from django.utils.translation import ugettext_lazy as _
44

5-
from ..settings import INVALID_FIELD_RAISES_404
6-
from .. import common
5+
from .settings import INVALID_FIELD_RAISES_404
6+
from . import common
77

88
register = template.Library()
99

0 commit comments

Comments
 (0)