Object label in GAE Django

In my normal django code, I use the unicode function to give each object a label ... this appears in the admin as an oject shortcut on the listed objects ...

class apprd(models.Model):
   usr = models.ReferenceProperty(User)
   approved = models.BooleanProperty(default = True)

   def __unicode__(self):
      return ('approved one')

      

but now i have switched to GAE and this feature doesn't seem to be supported ... is there any work or am i wrong

0


a source to share


2 answers


This is not possible in GAE as the GAE admin console does not read - indeed, does not have access to your model definitions. He only has access to stored data.



+1


a source


If you use http://code.google.com/p/app-engine-patch/ you can get the full Django admin interface running inside GAE.



0


a source







All Articles