Skip to content

Commit 6dd46f7

Browse files
committed
Reword deprecation notice to be clearer
1 parent 4578144 commit 6dd46f7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

menu/menu.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
from simple_menu.menu import *
44

55
warnings.warn(
6-
"Importing from 'menu' will be removed in django-simple-menu v2.3 and/or "
7-
"v3.0. Use imports from 'simple_menu' package instead.",
6+
"Importing from 'menu' is deprecated. Import from 'simple_menu' instead. "
7+
"The old import will be removed in django-simple-menu v3, but no earlier "
8+
"than on 2024-04-01.",
89
DeprecationWarning,
910
stacklevel=2
1011
)

menu/templatetags/menu.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
from simple_menu.templatetags.simple_menu import *
44

55
warnings.warn(
6-
"The 'menu' template library will be removed in django-simple-menu v2.3 "
7-
"and/or v3.0. Use '{% load simple_menu %}' instead.",
6+
"Loading from 'menu' is deprecated. Use '{% load simple_menu %}' instead. "
7+
"The old template library will be removed in django-simple-menu v3, but "
8+
"no earlier than on 2024-04-01.",
89
DeprecationWarning,
910
stacklevel=2
1011
)

0 commit comments

Comments
 (0)