Good evening,
i have three models, for example:

class tProduct(models.Model):
    name = models.CharField(_("Name"), max_length=20, blank=True)
    category = models.ManyToManyField(tCategory, blank=True,
verbose_name=_("Category"))
    objects = tProductManager()

    content_type = models.ForeignKey(ContentType)  #XXX content_object
to Options
    object_id = models.IntegerField()
    product_options = generic.GenericForeignKey()

    def __unicode__(self):
        return self.name

class SecondProductOptions (models.Model):
    name = models.CharField(_("Name"), max_length=50,
default="Videocards options")
    producer = models.CharField(_("Producer"), max_length=50,
blank=True)

    product = generic.GenericRelation(tProduct, null=True) #XXX
generic relation to tProduct

    objects = OptionsManager()

    def __unicode__(self):
        return self.name


class FirstOptions (models.Model):
    name = models.CharField(_("Name"), max_length=50,
default="Videocards options")
    producer = models.CharField(_("Producer"), max_length=50,
blank=True)

    product = generic.GenericRelation(tProduct, null=True) #XXX
generic relation to tProduct

    objects = OptionsManager()

    def __unicode__(self):
        return self.name


i've read in official documentation about "generic relations as an
inline", but according to this documentation we'll have an ability to
create  inline of tProduct objects in admin interface of FirstOptions
model and SecondOption models.
Is it any chance to create inlines of FirstOptions model and
SecondOption model in tProduct admin interface?
thnx
--~--~---------~--~----~------------~-------~--~----~
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