Improve overall code quality (based on pylint findings)

This commit is contained in:
Bastien Gérard
2018-10-06 21:44:25 +02:00
parent 55fc04752a
commit adfb039ba6
12 changed files with 53 additions and 70 deletions

View File

@@ -170,8 +170,8 @@ class Document(six.with_metaclass(TopLevelDocumentMetaclass, BaseDocument)):
"""
if self.pk is None:
return super(BaseDocument, self).__hash__()
else:
return hash(self.pk)
return hash(self.pk)
@classmethod
def _get_db(cls):