This is a quick commit. I gave admins the ability to ban or unban users
authortilly-Q <nattilypigeonfowl@gmail.com>
Thu, 29 Aug 2013 21:31:19 +0000 (17:31 -0400)
committertilly-Q <nattilypigeonfowl@gmail.com>
Thu, 29 Aug 2013 21:31:19 +0000 (17:31 -0400)
commit1bb367f6136ae4cbcdf6dd86af65eb613913dbd8
treec3565801fcf21de1383b5bdb764208b3a98c8e49
parentdfd66b789cd6cc9470c2a98bcbda9ee5e0f3ad0f
This is a quick commit. I gave admins the ability to ban or unban users
straight from the moderation.users_detail page. I also changed the
UserBan.expiration_date type from DateTime into Date. I also began work on the
Terms of Service, pulled from another website (which will be cited clearly
before I'm done). I added new tests as well for the ban/unbanning. Lastly,
I added a few `user_not_banned` decorators to relevant views, so banned users
cannot access any pages.
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/moderation/forms.py
mediagoblin/moderation/routing.py
mediagoblin/moderation/tools.py
mediagoblin/moderation/views.py
mediagoblin/submit/views.py
mediagoblin/templates/mediagoblin/meta/terms_of_service.html [new file with mode: 0644]
mediagoblin/templates/mediagoblin/moderation/user.html
mediagoblin/tests/test_moderation.py
mediagoblin/user_pages/views.py