Generic relationships in Django

2010-08-31 // Category: Link // Tags: Django, Python, Software

"Last week I’ve completed an interesting task within our project: building internal link-shortening system based on persisted objects, not on constant URLs. The main requirement was to get as loosely-coupled design as possible. In the perfect world the “shortenable” classes should know absolutely nothing about link-shortening mechanism. How to get such a flexibility in Django? I’ve used the ContentTypes framework with generic relations and it works pretty well!" by Marcin Swierczynski

URL: http://blog.swierczynski.net/2010/08/generic-relationships-in-django/