straight55b / app-engine-patch

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

Cant see list of data in admin module: Invalid block tag: 'admin_actions' #206

Open GoogleCodeExporter opened 9 years ago

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

Create a model like 

class Person(db.Model):
    """Basic user profile with personal details."""
    first_name = db.StringProperty(required=True)
    last_name = db.StringProperty(required=True)

    def __unicode__(self):
        return '%s %s' % (self.first_name, self.last_name)

    @permalink
    def get_absolute_url(self):
        return ('gameengine.views.show_person', (), {'key': self.key()})

2.

goto

http://localhost:8000/admin/gameengine/Person/

3.

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

The expected output would be a list of created objects if any.

What version of the product are you using? On what operating system?

Latest release: 1.1RC

Please provide any additional information below.

This happens for every class in models.. even the ones created by django
itself. Everything else seem to work perfectly.. am i doing anything wrong ?

Original issue reported on code.google.com by jakobhol...@gmail.com on 16 Aug 2009 at 2:24

GoogleCodeExporter commented 9 years ago
You need to register your model in the admin interface.

On admin.py, try to add:
from myproject.gameengine.models import Person
admin.site.register(Person)

Read the Django Documentation:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-objects

Original comment by paulmcpa...@gmail.com on 17 Aug 2009 at 6:17

GoogleCodeExporter commented 9 years ago
But i have the same problem in the sample app myapp. I would expect the amdin.py
allready have its models registered.. 

Original comment by jakobhol...@gmail.com on 17 Aug 2009 at 6:27

GoogleCodeExporter commented 9 years ago
have a same problem

Original comment by vnep...@gmail.com on 5 Apr 2011 at 10:05