esoergel / peacecorps

Random Hacks of Kindness - Boston
2 stars 7 forks source link

If you wanted blogpost namespaced by user #62

Open thadk opened 11 years ago

thadk commented 11 years ago

/apps/pcvblog/urls.py which pulls the permalink/blog_permalink from the generation function in apps/pcvblog/model.py

thadk commented 11 years ago

The issue with removing the primary key from the blog post permalink is that the slug will need to be uniquely generated in the permalink function--it would need to check the existence of an identically titled post and maybe append, e.g. blogpost-3, blogpost-2.