Edit particular resource of a community, view function + template + unittests

Fix flake8 errors