It's nice to consistently list the __str__ method first and all the dunder methods, then the static methods, then the rest.
At least for the models.
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
"msDS-ClaimTypeAppliesToClass", many=True)
claim_value_type = IntegerField("msDS-ClaimValueType")
+ def __str__(self):
+ return str(self.display_name)
+
@staticmethod
def get_base_dn(ldb):
"""Return the base DN for the ClaimType model.
@staticmethod
def get_object_class():
return "msDS-ClaimType"
-
- def __str__(self):
- return str(self.display_name)