Fix problem in announcement_detail view. slug can be the field used in the get_object. Use id instead. Admins can create duplicated slug in the admin interface