Merge pull request #21702 from edx/BOM-736

BOM-736
This commit is contained in:
Aarif
2019-09-23 19:16:14 +05:00
committed by GitHub

View File

@@ -3,12 +3,11 @@ Custom user-related utility code.
"""
from __future__ import absolute_import
import six
from django.utils.encoding import python_2_unicode_compatible
from django.contrib.auth.models import AnonymousUser
@six.python_2_unicode_compatible
@python_2_unicode_compatible
class SystemUser(AnonymousUser):
"""
A User that can act on behalf of system actions, when a user object is
@@ -17,6 +16,7 @@ class SystemUser(AnonymousUser):
Like the AnonymousUser, this User is not represented in the database, and
has no primary key.
"""
# pylint: disable=abstract-method
def __str__(self):
return u'SystemUser'
return 'SystemUser'