Re: Question regarding Generic Foreign Keys and relations

2012-05-10 Thread David
Just an update, the following got me on the right track. http://blog.roseman.org.uk/2010/02/22/django-patterns-part-4-forwards-generic-relations/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https:/

Question regarding Generic Foreign Keys and relations

2012-05-08 Thread David
I am trying to abstract a log app that I have made for my project to make it more DRY. In order to achieve this I have tried to implement Generic FKs class Modification(models.Model): content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField() content_obje