Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Ordering can't span tables on App Engine (content_type__app_label)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Harry Mason  
View profile  
 More options Feb 22 2010, 3:10 pm
From: Harry Mason <glazed...@gmail.com>
Date: Mon, 22 Feb 2010 12:10:37 -0800 (PST)
Local: Mon, Feb 22 2010 3:10 pm
Subject: Ordering can't span tables on App Engine (content_type__app_label)
Hi,

In Admin panel, when go to "http://localhost:8000/admin/auth/user/1/"
error occurs

"DatabaseError at /admin/auth/user/1/
Ordering can't span tables on App Engine (content_type__app_label)
/django-testapp/common-apps/djangoappengine/db/compiler.py in
build_query, line 161
"

So Auth framework not usable because of this. I also tested with some
existing django applications
(some of them using ContentType) gets this error .

How to resolve this issue.
Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Wanschik  
View profile   Translate to Translated (View Original)
 More options Feb 23 2010, 9:15 am
From: Thomas Wanschik <twansc...@googlemail.com>
Date: Tue, 23 Feb 2010 15:15:55 +0100
Local: Tues, Feb 23 2010 9:15 am
Subject: Re: Ordering can't span tables on App Engine (content_type__app_label)

On Mon, Feb 22, 2010 at 9:10 PM, Harry Mason <glazed...@gmail.com> wrote:
> In Admin panel, when go to "http://localhost:8000/admin/auth/user/1/"
> error occurs

> "DatabaseError at /admin/auth/user/1/
> Ordering can't span tables on App Engine (content_type__app_label)
> /django-testapp/common-apps/djangoappengine/db/compiler.py in
> build_query, line 161
> "
> So Auth framework not usable because of this. I also tested with some
> existing django applications
> (some of them using ContentType) gets this error .

> How to resolve this issue.

This is caused by JOINs. We need to add an additional backend layer in
order to support JOINs which will not come soon. We can help someone
to implement such a layer. Are you interested in helping?

An easier solution is to change the UserAdmin in
django/contrib/auth/admin.py. Fieldsets specifies which fields to
display. So you would have to remove "user_permissions" and "groups"
from fieldsets. See
http://code.djangoproject.com/browser/django/trunk/django/contrib/aut...

Bye,
Thomas

--
http://www.allbuttonspressed.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mrk  
View profile  
 More options Mar 27 2010, 9:18 am
From: mrk <kryn...@gmail.com>
Date: Sat, 27 Mar 2010 06:18:18 -0700 (PDT)
Local: Sat, Mar 27 2010 9:18 am
Subject: Re: Ordering can't span tables on App Engine (content_type__app_label)
On 22 Lut, 20:10, Harry Mason <glazed...@gmail.com> wrote:

> How to resolve this issue.

In my last project i registered my own user admin, using custom user
form without user_permissions and groups fields:

class UserForm(forms.ModelForm):
  class Meta:
    model = User
    fields = ('username','email','first_name','last_name','is_active',
'is_staff', 'is_superuser',)

from django.contrib.auth.admin import UserAdmin
class CustomUserAdmin(UserAdmin):
  fieldsets = None
  form = UserForm

admin.site.unregister(django.contrib.auth.models.User)
admin.site.register(User,CustomUserAdmin)

--
mrk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »