Answers for "Django Give normal user privileges using python shell"

0

Django Give normal user privileges using python shell

from django.contrib.auth.models import User
user = User.objects.get(username='normaluser')
user.is_superuser = True
user.save()
Posted by: Guest on May-21-2021

Code answers related to "Django Give normal user privileges using python shell"

Browse Popular Code Answers by Language