Restricted category to accept just parent from same model and closed #159

Restricted category to accept just parent from same model and closed #159