Commit 4efcdfeb authored by Vangelis Koukis's avatar Vangelis Koukis
Browse files

Merge branch 'admin'

parents d365dfc9 0285d5fb
......@@ -312,7 +312,7 @@ class RegisterImage(Command):
def add_options(self, parser):
parser.add_option('--meta', dest='meta', action='append',
help='assign image to user with id UID')
help='add metadata (can be used multiple times)')
parser.add_option('--public', action='store_true', dest='public',
default=False, help='make image public')
parser.add_option('-u', dest='uid', metavar='UID',
......@@ -344,7 +344,7 @@ class RegisterImage(Command):
for m in self.meta:
key, sep, val = m.partition('=')
if key and val:
image.imagemetadata_set.create(meta_key=key, meta_value=val)
image.metadata.create(meta_key=key, meta_value=val)
print 'WARNING: Ignoring meta', m
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment