diff options
author | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-05-23 04:17:43 +0200 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-05-23 04:31:59 +0200 |
commit | 6ec4100f25a53073acf662717c8f61bcad96493e (patch) | |
tree | c54ed70bd13b640e2c1472c24b95ebc35c94ceb5 /src/lib | |
parent | bb21feba15b062c5e4d17a400adea1049713c0f4 (diff) | |
download | bcfg2-6ec4100f25a53073acf662717c8f61bcad96493e.tar.gz bcfg2-6ec4100f25a53073acf662717c8f61bcad96493e.tar.bz2 bcfg2-6ec4100f25a53073acf662717c8f61bcad96493e.zip |
Fix string conversion for Python 3py3-server
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Reporting/models.py | 4 | ||||
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Ldap.py | 2 | ||||
-rw-r--r-- | src/lib/Bcfg2/Server/Reports/reports/models.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Reporting/models.py b/src/lib/Bcfg2/Reporting/models.py index faa972204..bad94171b 100644 --- a/src/lib/Bcfg2/Reporting/models.py +++ b/src/lib/Bcfg2/Reporting/models.py @@ -297,7 +297,7 @@ class Group(models.Model): groups = models.ManyToManyField("self", symmetrical=False) bundles = models.ManyToManyField("Bundle") - def __unicode__(self): + def __str__(self): return self.name class Meta: @@ -319,7 +319,7 @@ class Bundle(models.Model): name = models.CharField(max_length=255, unique=True) - def __unicode__(self): + def __str__(self): return self.name class Meta: diff --git a/src/lib/Bcfg2/Server/Plugins/Ldap.py b/src/lib/Bcfg2/Server/Plugins/Ldap.py index cb82d962e..741540766 100644 --- a/src/lib/Bcfg2/Server/Plugins/Ldap.py +++ b/src/lib/Bcfg2/Server/Plugins/Ldap.py @@ -266,7 +266,7 @@ class LdapQuery(object): connection = None result = None - def __unicode__(self): + def __str__(self): return "LdapQuery: %s" % self.name def is_applicable(self, metadata): # pylint: disable=W0613 diff --git a/src/lib/Bcfg2/Server/Reports/reports/models.py b/src/lib/Bcfg2/Server/Reports/reports/models.py index ce7912027..8fcd948c9 100644 --- a/src/lib/Bcfg2/Server/Reports/reports/models.py +++ b/src/lib/Bcfg2/Server/Reports/reports/models.py @@ -371,7 +371,7 @@ class Group(models.Model): groups = models.ManyToManyField("self", symmetrical=False) bundles = models.ManyToManyField("Bundle") - def __unicode__(self): + def __str__(self): return self.name @@ -384,7 +384,7 @@ class Bundle(models.Model): name = models.CharField(max_length=255, unique=True) - def __unicode__(self): + def __str__(self): return self.name |