I have simple models with generic relations from this example at the
Django Project:

class Image(models.Model):
    image = models.ImageField(upload_to="images")
    content_type = models.ForeignKey(ContentType)
    object_id = models.PositiveIntegerField()
    content_object = generic.GenericForeignKey("content_type",
"object_id")

class Product(models.Model):
    name = models.CharField(max_length=100)

It's very simple to show inline objects on the admin form of Product.
It is demonstrated in the Django docs:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#using-generic-relations-as-an-inline.

Can anyone suggest how have related Products inline on the admin form
of an Image model?

Copy from here:
http://stackoverflow.com/questions/1160174/show-related-inlines-in-the-admin-on-form-of-model-with-genericforeignkey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to