evildmp / Arkestra

Arkestra extends Django CMS to provide an intelligent semantic web publishing system for organisations and institutions.
http://arkestra-project.org
BSD 2-Clause "Simplified" License
139 stars 27 forks source link

Unpublished generic items should return 404 #53

Closed evildmp closed 11 years ago

evildmp commented 11 years ago

Views for individual items require test for published field. An item that is unpublished is still available, but should return a 404.

evildmp commented 11 years ago

9924b3eb51df4dbb5e965b739c8ff0c8b6db1e39 provides this for NewsArticle, but it will be a bore to repeat it for all models, and write tests. Better to re-visit a generic view that all such models can share.