Hi,
I'm using the contenttypes framework to create a "featured content" feature on my site. I've basically done this by defining a model like so:
class FeaturedContent(models.Model):
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
content_object = generic.GenericForeignKey('content_type', 'object_id')
What I would like to be able to do now is have a tick box on every model edit/create page from within my admin area, which when ticked and submitted adds the content reference to FeaturedContent. When unticked, likewise the reference is deleted.
If there are any better methods to do this please let me know. From what I can see, using contenttypes is the way to go.
Many thanks!