Add permalinks

Add permalinks to models
Redundant `self` detected.