Skip to content

Commit

Permalink
Merge pull request #1143 from AndreaCrotti/master
Browse files Browse the repository at this point in the history
A simple docstring to clarify a part of the code that might be confusing to understand
  • Loading branch information
mjtamlyn committed May 19, 2013
2 parents 6fef4be + 5124ab7 commit 726e576
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/base/models.py
Expand Up @@ -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):
Expand Down

0 comments on commit 726e576

Please sign in to comment.