#4377: Something's wrong with your database installation, make sure the database is readable by the appropriate user. ---------------------------------------------------+------------------------ Reporter: Frank tegtmeyer <f...@fte.to> | Owner: mtredinnick Status: reopened | Milestone: 1.0.3 Component: Authentication | Version: 1.0 Resolution: | Keywords: Stage: Ready for checkin | Has_patch: 1 Needs_docs: 1 | Needs_tests: 1 Needs_better_patch: 1 | ---------------------------------------------------+------------------------ Changes (by praveen_django):
* status: closed => reopened * cc: praveen.python.pl...@gmail.com (added) * needs_better_patch: 0 => 1 * component: Translations => Authentication * needs_tests: 0 => 1 * summary: Spelling errors in database error description => Something's wrong with your database installation, make sure the database is readable by the appropriate user. * version: SVN => 1.0 * milestone: => 1.0.3 * keywords: translation german => * needs_docs: 0 => 1 * resolution: fixed => Comment: {{{ 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/4377#comment:3> 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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---