Skip to content

Commit b41aca1

Browse files
author
MiltonLn
committed
A small fix for import to support python 2.7
1 parent 4f999a9 commit b41aca1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ How to use
5050
{
5151
"name": "Login",
5252
"url": "login_url_view", # reversible
53-
"validators": ["menu_generator.utils.is_anonymous"],
53+
"validators": ["menu_generator.validators.is_anonymous"],
5454
},
5555
{
5656
"name": "Register",
5757
"url": "register_view_url", # reversible
58-
"validators": ["menu_generator.utils.is_anonymous"],
58+
"validators": ["menu_generator.validators.is_anonymous"],
5959
},
6060
{
6161
"name": "Account",
6262
"url": "/acount",
63-
"validators": ["menu_generator.utils.is_authenticated"],
63+
"validators": ["menu_generator.validators.is_authenticated"],
6464
"submenu": [
6565
{
6666
"name": "Profile",
@@ -74,7 +74,7 @@ How to use
7474
{
7575
"name": "Account Secrets",
7676
"url": "/account/secrets",
77-
"validators": ["menu_generator.utils.is_superuser"],
77+
"validators": ["menu_generator.validators.is_superuser"],
7878
}
7979
],
8080
},

Diff for: menu_generator/templatetags/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django.conf import settings
2-
from menu_generator.utils import get_callable
2+
from ..utils import get_callable
33

44
MENU_DICT = ".menus.MENUS"
55

0 commit comments

Comments
 (0)