Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #1143 from AndreaCrotti/master

A simple docstring to clarify a part of the code that might be confusing to understand
  • Loading branch information...
2 parents 6fef4be + 5124ab7 commit 726e57679428336888b01d63836592d26645d5c9 @mjtamlyn mjtamlyn committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/base/
4 tests/base/
@@ -14,8 +14,10 @@ class CustomBaseModel(models.base.ModelBase):
class MyModel(six.with_metaclass(CustomBaseModel, models.Model)):
- """Model subclass with a custom base using six.with_metaclass."""
+ """Model subclass with a custom base using six.with_metaclass."""
+# This is done to ensure that for Python2 only, defining metaclasses
+# still does not fail to create the model.
if not six.PY3:
class MyModel(models.Model):

0 comments on commit 726e576

Please sign in to comment.
Something went wrong with that request. Please try again.