google-code-export / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

Can't use raw_id_fields? #230

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I get this template error:

Caught an exception while rendering: 'Rel' object has no attribute
'limit_choices_to'

When viewing change form in the admin.

Admin = 

class SlideEntryInline(admin.TabularInline):
    model = SlideEntry
    raw_id_fields = (['slide'])
    extra = 1

Model = 

class SlideEntry(db.Model):
    '''link table between slides and slideshows'''
    slide = db.ReferenceProperty(Slide, required = True)
    slide_show = db.ReferenceProperty(SlideShow, required = True,
collection_name = 'slide_entries')
    order = db.FloatProperty(required = True)

Original issue reported on code.google.com by joe.a.sh...@gmail.com on 14 Oct 2009 at 5:21