#10718: Something's wrong with your database installation, make sure the
database
is readable by the appropriate user.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Reporter: praveen_django
| Owner: nobody
Status: new
| Milestone: 1.0.3
Component: Authentication
| Version: 1.0
Keywords: Something's wrong with your database installation. Make sure the
appropriate database tables have been created, and make sure the database is
readable by the appropriate user. | Stage: Unreviewed
Has_patch: 0
|
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
{{{
def queryset(self, request):
qs = super(EventAdmin, self).queryset(request)
if not request.user.is_superuser:
qs =
qs.filter(city=request.user.get_profile().res_city)
return qs
}}}
it works fine as but it list out all the city's events
{{{
def queryset(self, request):
qs = super(EventAdmin, self).queryset(request)
if request.user.is_superuser:
qs =
qs.filter(city=request.user.get_profile().res_city)
return qs
}}}
but when i change the if condition it gives error message
Database error
Something's wrong with your database installation. Make sure the
appropriate database tables have been created, and make sure the database
is readable by the appropriate user.
--
Ticket URL: <http://code.djangoproject.com/ticket/10718>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---