diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-05-16 18:28:49 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-05-16 18:28:49 -0500 |
commit | 931f318cbc571419510b1ad37298c981df2f16b0 (patch) | |
tree | b6095c14199f07cb77c10d7d0389fad6e283144f | |
parent | f0545ddebd1a313249f6b39fdf96ba879a78e8b2 (diff) | |
download | mediagoblin-931f318cbc571419510b1ad37298c981df2f16b0.tar.lz mediagoblin-931f318cbc571419510b1ad37298c981df2f16b0.tar.xz mediagoblin-931f318cbc571419510b1ad37298c981df2f16b0.zip |
Actually we only need unique slugs per uploader.
But I want to fix http://bugs.foocorp.net/issues/340 first.
-rw-r--r-- | mediagoblin/models.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mediagoblin/models.py b/mediagoblin/models.py index 7cacc519..1bc1da60 100644 --- a/mediagoblin/models.py +++ b/mediagoblin/models.py @@ -99,9 +99,11 @@ class MediaEntry(Document): 'created': datetime.datetime.utcnow, 'state': u'unprocessed'} - indexes = [ - {'fields': 'slug', - 'unique': True}] + # Actually we should referene uniqueness by uploader, but we + # should fix http://bugs.foocorp.net/issues/340 first. + # indexes = [ + # {'fields': ['uploader', 'slug'], + # 'unique': True}] def main_mediafile(self): pass |