Use inspect_table; default user license==None.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 22 Jan 2013 21:28:19 +0000 (22:28 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 22 Jan 2013 22:10:30 +0000 (23:10 +0100)
commit0c871f81220b3d5c1700a0e4141eb7e52efc04e0
tree32a5ccefa0f51a80e032f52dbae460f3ab4ac05b
parent066d49b2c1c8319a5b7805b4a68a8ee2b1c59ad1
Use inspect_table; default user license==None.

Use inspect_table in the new migration. Makes code more
readable, really.

And make the default for the preferred license be None.
This is a userspace thing, so we can even change the
migration here. Changing the migration means, that people
running the migration before this commit get a "" in
User.license_preference, while people running the migration
now get a None. Both values are okay.

None has been designated as "Use the site's default". We're
not actually having a site default right now. Which means
no license is selected in the dropdown.

While "" means "All rights reserved" being chosen by the
user.

Side note: Having no license being selected in the submit
dropdown is as "worse" as before and does not really hurt
much. MediaEntry.license==None means "All rights reserved"
as does "" also do.
mediagoblin/db/migrations.py