﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10718	Something's wrong with your database installation, make sure the database is readable by the appropriate user.	Praveen	nobody	"
{{{
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. "		closed	contrib.auth	1.0		invalid	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.	praveen.python.plone@…	Unreviewed	0	0	0	0	0	0
