proxyserver2023 / hospital-management-system

Hospital Management System, built with django and mysql
7 stars 11 forks source link

Group matching query does not exist #2

Open ghost opened 4 years ago

ghost commented 4 years ago

when i run this project, exception error: Group matching query does not exist

MUDASSARHASHMI commented 4 years ago

Create following groups from django shell and you can make it work.

from django.contrib.auth.models import, Group, Permission new_group, created = Group.objects.get_or_create(name='doctor') new_group, created = Group.objects.get_or_create(name='patient') new_group, created = Group.objects.get_or_create(name='receptionist') new_group, created = Group.objects.get_or_create(name='lab_attendant') new_group, created = Group.objects.get_or_create(name='inventory_manager') new_group.save() exit();

Hope it helps.

ghost commented 4 years ago

Hospital management

Can u help this query. I want to clear.

error - delete & update -appointment (no database update) -Doctor login shows all patients instead of his/her patients

On Tue, 28 Jan, 2020, 3:07 AM Mudassar Hashmi, notifications@github.com wrote:

Create following groups from django shell and you can make it work.

from django.contrib.auth.models import, Group, Permission new_group, created = Group.objects.get_or_create(name='doctor') new_group, created = Group.objects.get_or_create(name='patient') new_group, created = Group.objects.get_or_create(name='receptionist') new_group, created = Group.objects.get_or_create(name='lab_attendant') new_group, created = Group.objects.get_or_create(name='inventory_manager') new_group.save() exit();

Hope it helps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alamin-mahamud/hospital-management-system/issues/2?email_source=notifications&email_token=AMO3JGENKHTRSGC3EPRUEJ3Q75H2ZA5CNFSM4KJLR6EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKBFABY#issuecomment-578965511, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMO3JGAVA53CKBXXKSZYL4LQ75H2ZANCNFSM4KJLR6EA .