used get_absolute_url method to populate hrefs
Added test for detailpage