Changes related to comments GenericRelation. also remove int casting in pk's, there is no need for them.