Object label in GAE Django

In my usual django code I use the unicode function to give each object a label...this appears in the admin interface as the oject label in the objects listed...

class apprd(models.Model): usr = models.ReferenceProperty(User) approved = models.BooleanProperty(default = True) def __unicode__(self): return ('approved one')

but now i have moved to GAE and this feature does not seem to be supported... is there any work around or am I doin a mistake


This isn't possible in GAE, because the GAE admin console does not read - indeed, has no access to - your model definitions. It only has access to the stored data.

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

Category:django Time:2009-05-11 Views:1

Related post

  • filter from an object and more object that related in django? 2010-01-04

    This Is my models.py class Customer(models.Model): def __unicode__(self): return self.name name = models.CharField(max_length=200) type = models.ForeignKey(Customer_Type) active = models.BooleanField(default=True) class Sale(models.Model): def __unic

  • How to create Object (label, button) using Code 2010-07-21

    How to create Object (label, button) using Code? --------------Solutions------------- Dim myButton as new Button myButton.width = 100 myButton.height = 20 myButton.top = 50 myButton.left = 50 Me.controls.add(myButton) Dim Label1 as New Label() You cr

  • Now to convert this strings to date time object in Python or django? 2010-10-12

    Now to convert this strings to date time object in Python or django? 2010-08-17T19:00:00Z 2010-08-17T18:30:00Z 2010-08-17T17:05:00Z 2010-08-17T14:30:00Z 2010-08-10T22:20:00Z 2010-08-10T21:20:00Z 2010-08-10T20:25:00Z 2010-08-10T19:30:00Z 2010-08-10T19

  • Porting a GAE Django app to Azure AppFabric 2010-12-26

    I have a GAE+Django app and wanted to port it to Microsoft Azure AppFabric. What would be the best way to do this? It's sort of like a RESTful service with custom output that is neither JSON nor XML. All of the Azure samples force you to output eithe

  • GAE + Django Forms + Validation 2010-12-23

    I have a problem with how to do validation on GAE. I have read many tutorials and I prepared django form and I wanted to validate it but I dont see eny error messages in my web page code and I dont see any errors when the values are bad. import cgi i

  • How to set css class of a label in a django form declaration? 2011-08-05

    I'm using django-uniform and to use some uniform features, I'm looking for a way to add css class directly from form declaration (for independents widgets). (as a bonus, here my reusable read-only home made mixin snippet...) from django import forms

  • Upload Image to Blob using GAE + Django 2011-08-22

    I'm writing an application using GAE and Django in which I want to give to user the ability to upload his image. Also, I want this image be stored as blob on GAE's datastore. I have seen many examples but nothing specific to this scenario. Although,

  • Inserting object with ManyToMany in Django 2009-04-06

    I have a blog-like application with stories and categories: class Category(models.Model): ... class Story(models.Model): categories = models.ManyToManyField(Category) ... Now I know that when you save a new instance of a model with a many-to-many fie

  • GAE + Django. app-engine-patch or django-gae-helpers? 2009-05-04

    I'm building app using GAE and wanted to use Django for that. Which "patch" is better? app-engine-patch or django-gae-helpers? I mean functionality and future of them (will one of them die soon). --------------Solutions------------- If by django-gae-

  • How to agnostically link any object/Model from another Django Model? 2009-06-09

    I'm writing a simple CMS based on Django. Most content management systems rely on having a fixed page, on a fixed URL, using a template that has one or many editable regions. To have an editable region, you require a Page. For the system to work out

  • How to edit/add objects using the same django form? 2010-03-06

    Hey, I've searched around to do this (particularly this Q: http://stackoverflow.com/questions/1854237/django-edit-form-based-on-add-form) but I just can't get it to work. The problem I'm having is that the form always creates a new object, instead of

  • Problem detaching entire object graph in GAE-J with JDO 2010-03-08

    I am trying to load the full object graph for User, which contains a collection of decks, which then contains a collection of cards, as such: User: @PersistenceCapable(detachable = "true") @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) @

  • GAE/Django Templates (0.96) filters to get LENGTH of GqlQuery and filter it 2010-03-28

    I pass the query with comments to my template: COMM = CommentModel.gql("ORDER BY created") doRender(self,CP.template,{'CP':CP,'COMM':COMM, 'authorize':authorize()}) And I want to output the number of comments as a result, and I try to do things like

  • Django vs GAE + Django vs GAE + other framework 2010-04-22

    I`m looking for opinion which one is better for building web applications(web sites). I have some experience with Django, and some with Google App Engine and App-Engine-Patch for Django. And it seems to me that only Django is working faster than the

  • Strange behavior with complex Q object filter queries in Django 2010-04-27

    Hi I am trying to write a tagging system for Django, but today I encountered a strange behavior in filter or the Q object (django.db.models.Q). I wrote a function, that converts a search string into a Q object. The next step would be to filter the Ta

  • How do I get the number of objects per day using django? 2010-04-28

    I have a django model with a DateTimeField. class Point(models.Model): somedata = models.CharField(max_length=256) time = models.DateTimeField() I want to get a count of the number of these objects for each day. I can do this with the following SQL q

  • Call method just before storing object in datastore (GAE) 2010-07-23

    is there any possibility to call method just before making object persistent? Something like "onMakeObjectPersistent()" I want to calculate geohash basing on lon and lat and store it in datastore. Regars, M Solution: as @Duy Do post: in JDO we can do

  • Object not iterable with django's pagination 2010-07-28

    I have a template showing a list of events. To prepare list of events I'm using generic views, and set 'paginate_by' parameter. Strangely when I load my page I see : TemplateSyntaxError at /event/latest/ Caught an exception while rendering: 'int' obj

  • Select Children of an Object With ForeignKey in Django? 2010-08-20

    I'm brand new to Django, so the answer to this is probably very simple. However, I can't figure it out. Say I have two bare-bones Models. class Blog(models.Model): title = models.CharField(max_length=160) text = models.TextField() class Comment(model

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.371 (s). 13 q(s)