Always use colon as segment separator

This commit is contained in:
Matthew Tretter 2013-01-29 02:17:52 -05:00
parent e48817a5ec
commit e0ffb246ae

View file

@ -11,7 +11,7 @@ class SpecHostField(SpecHost):
# Generate a spec_id to register the spec with. The default spec id is
# "<app>:<model>_<field>"
if not getattr(self, 'spec_id', None):
spec_id = (u'%s:%s_%s' % (cls._meta.app_label,
spec_id = (u'%s:%s:%s' % (cls._meta.app_label,
cls._meta.object_name, name)).lower()
# Register the spec with the id. This allows specs to be overridden