File tree Expand file tree Collapse file tree
src/testproj/testproj/testapp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from jinja2 .environment import Environment
2-
31from django .template .defaultfilters import yesno
42from django .templatetags .static import static
5- from webstack_django_sorting .jinja2_globals import (
6- sorting_anchor ,
7- sort_queryset ,
8- )
3+ from jinja2 .environment import Environment
4+
5+ from webstack_django_sorting .jinja2_globals import sort_queryset , sorting_anchor
96
107
118class JinjaEnvironment (Environment ):
Original file line number Diff line number Diff line change 1- from django .db import migrations , models
21import django .utils .timezone
2+ from django .db import migrations , models
33
44
55class Migration (migrations .Migration ):
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ class SecretFile(models.Model):
1010 is_secret = models .BooleanField (default = False )
1111
1212 def __str__ (self ):
13- return "#%d %s" % ( self .order , self .filename )
13+ return f"# { self .order } { self .filename } "
You can’t perform that action at this time.
0 commit comments