Skip to content

Commit a5815bf

Browse files
committed
More sensible match for django apps.
Fix #18
1 parent 307dec7 commit a5815bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

menu/menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def load_menus(c):
5151
# loop through our INSTALLED_APPS
5252
for app in settings.INSTALLED_APPS:
5353
# skip any django apps
54-
if re.match("django", app):
54+
if app.startswith("django."):
5555
continue
5656

5757
menu_module = '%s.menus' % app

0 commit comments

Comments
 (0)