straight55b / app-engine-patch

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

django.contrib.admin.ModelAdmin.list_editable and many others properties don't work #194

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a TestModel
class TestModel(db.Model):
  test_field = db.StringProperty(indexed=True)

2. Create a TestModel for the Django Admin Interface:
class TestModelAdmin(admin.ModelAdmin):
  list_editable = ['test_field']
admin.site.register(TestModel, TestModelAdmin)

3. Go to admin/myapp/testmodel/

What is the expected output? What do you see instead?

I see an exception with the value:
'TestModelAdmin.list_editable[0]' refers to a field, 'test_field', not
defined on TestModel.'

If you will try to refresh the page, you won't able to find the TestModel
CRUD page.

What version of the product are you using? On what operating system?
I'm using app-engine-patch 1.1RC with Google App Engine Launcher 1.2.3.422
on Mac OS 10.5.7.

Please provide any additional information below.
http://dpaste.com/74813/

Original issue reported on code.google.com by paulmcpa...@gmail.com on 3 Aug 2009 at 6:29