It seems google app engine patch doesnt support _set.all.  I have
tried my original django only version and it works but with google app
engine patch does not.

my template code:

 {% for model in object.product_model_set.all %}
    <a href="{{ model.get_absolute_url }}">{{ model.full_title }}</a>
 {% endfor %}

I dont how / what to replace _set.all with, if I set it to model.all
it still does nothing.
Thanks...

here is my model:


class Product_Model(db.Model):
    """  Model Details """
    type  = db.ReferenceProperty(Product_Make, required=True,
collection_name='make_set')
    title = db.StringProperty(required=True)
    slug  = db.StringProperty(required=True)
    derivative    = db.StringProperty(required=True)
    released      = db.DateProperty(auto_now_add = 1)
    picture       = db.BlobProperty(default=None)
    review        = db.TextProperty(required=True)
    genre  = db.ReferenceProperty(Product_Type, required=True,
collection_name='genre_set')

    def __unicode__(self):
        return '%s' % (self.title)

    class Meta:
        ordering = ('title',)

    @property
    def full_title(self):
        return '%s %s' % (self.title, self.type)


    @permalink
    def get_absolute_url(self):
        return ('model_detail_url', None, { 'slug': self.slug })
--~--~---------~--~----~------------~-------~--~----~
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