Author: floguy
Date: Sat Sep 20 20:47:40 2008
New Revision: 18
Modified:
trunk/things/options.py
Log:
Changed url_prefix boolean check specificity to 'is None' instead of
implicit bool()
Modified: trunk/things/options.py
==============================================================================
--- trunk/things/options.py (original)
+++ trunk/things/options.py Sat Sep 20 20:47:40 2008
@@ -96,7 +96,7 @@
def urls(self, prefix='^', name_prefix=None, url_prefix=None):
self.name_prefix = name_prefix # Is this robust enough? Needs
testing.
self.url_prefix = url_prefix
- if not self.url_prefix:
+ if self.url_prefix is None:
self.url_prefix = "%s/%s" % (self.qs.model._meta.app_label,
self.qs.model._meta.module_name)
tmp_urls = [
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---