Merge remote-tracking branch 'gitorious/master'
This commit is contained in:
commit
54f9d72356
@ -95,7 +95,7 @@ class MediaEntry(Document):
|
||||
'thumbnail_file': [unicode]}
|
||||
|
||||
required_fields = [
|
||||
'uploader', 'created', 'media_type']
|
||||
'uploader', 'created', 'media_type', 'slug']
|
||||
|
||||
default_values = {
|
||||
'created': datetime.datetime.utcnow,
|
||||
@ -103,11 +103,10 @@ class MediaEntry(Document):
|
||||
|
||||
migration_handler = migrations.MediaEntryMigration
|
||||
|
||||
# Actually we should referene uniqueness by uploader, but we
|
||||
# should fix http://bugs.foocorp.net/issues/340 first.
|
||||
# indexes = [
|
||||
# {'fields': ['uploader', 'slug'],
|
||||
# 'unique': True}]
|
||||
indexes = [
|
||||
# Referene uniqueness of slugs by uploader
|
||||
{'fields': ['uploader', 'slug'],
|
||||
'unique': True}]
|
||||
|
||||
def main_mediafile(self):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user