Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django/utils/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def django_file_prefixes():
file = django.__file__
except AttributeError:
return ()
return (os.path.dirname(file),)
return (file.rpartition(os.sep)[0],)


class RemovedInNextVersionWarning(DeprecationWarning):
Expand Down