cidadania/e-cidadania — pull request #187 by tssavita (2013-03-23 06:39:26+00:00)
Title: Admin is not able to edit the debate he created.

When the admin tries to log in and edit a debate that he had previously created, he is not able to do so. An error occurs indicating that a certain variable of the name 'pk' has not been defined, in /src/apps/debate/views.py in edit_debate function (line 172).

It has been fixed by initializing pk.
=> pk = debate_id

inside the 'edit_debate' function.