refactor: pyupgrade in profile_images, programs, safe_sessions (#26953)
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
"""Models providing Programs support for the LMS and Studio."""
|
||||
|
||||
|
||||
import six
|
||||
from config_models.models import ConfigurationModel
|
||||
from django.db import models
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
@@ -15,7 +12,7 @@ class ProgramsApiConfig(ConfigurationModel):
|
||||
|
||||
.. no_pii:
|
||||
"""
|
||||
class Meta(object):
|
||||
class Meta:
|
||||
app_label = "programs"
|
||||
|
||||
marketing_path = models.CharField(
|
||||
@@ -31,7 +28,7 @@ class CustomProgramsConfig(ConfigurationModel): # pylint: disable=model-missing
|
||||
"""
|
||||
Manages configuration for a run of the backpopulate_program_credentials management command.
|
||||
"""
|
||||
class Meta(object):
|
||||
class Meta:
|
||||
app_label = 'programs'
|
||||
verbose_name = 'backpopulate_program_credentials argument'
|
||||
|
||||
@@ -42,4 +39,4 @@ class CustomProgramsConfig(ConfigurationModel): # pylint: disable=model-missing
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return six.text_type(self.arguments)
|
||||
return str(self.arguments)
|
||||
|
||||
Reference in New Issue
Block a user