Message ID | 20130902203922.7795.54048.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'dashboard_app/models.py' --- dashboard_app/models.py 2013-09-02 13:48:15 +0000 +++ dashboard_app/models.py 2013-09-02 20:36:10 +0000 @@ -275,6 +275,8 @@ Returns user, group, slug, is_public, is_anonymous Raises ValueError if the pathname is not well formed """ + if not pathname.endswith('/'): + pathname = pathname + '/' pathname_parts = pathname.split('/') if len(pathname_parts) < 3: raise ValueError("Pathname too short: %r" % pathname)