Make the user a proper Foreign Key in the database
authorMagnus Hagander <magnus@hagander.net>
Wed, 10 Feb 2016 18:00:13 +0000 (19:00 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 10 Feb 2016 18:19:56 +0000 (19:19 +0100)
commitc9ef9a874b67861d58997820c1e411f6adf1fb26
tree0be59bca1919b36c1e39998e50bf73310754509b
parent302e1f22fc9482fda1ecf681c33b143fb9ee91dd
Make the user a proper Foreign Key in the database

Instead of storing the username as a string and doing lookups all the time when it
goes out of sync.

The database has to be cleaned before running this one, by simply moving all blogs
with invalid users to some "collector account".
hamnadmin/hamnadmin/register/admin.py
hamnadmin/hamnadmin/register/management/commands/aggregate_feeds.py
hamnadmin/hamnadmin/register/migrations/0003_user_foreign_key.py [new file with mode: 0644]
hamnadmin/hamnadmin/register/models.py
hamnadmin/hamnadmin/register/templates/moderate.html
hamnadmin/hamnadmin/register/views.py