Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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...
commit 726e57679428336888b01d63836592d26645d5c9 2 parents 6fef4be + 5124ab7
@mjtamlyn mjtamlyn authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/base/models.py
View
4 tests/base/models.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.