Merge pull request #1143 from AndreaCrotti/master

A simple docstring to clarify a part of the code that might be confusing to understand
This commit is contained in:
Marc Tamlyn 2013-05-19 01:52:33 -07:00
commit 726e576794
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ class CustomBaseModel(models.base.ModelBase):
class MyModel(six.with_metaclass(CustomBaseModel, models.Model)): 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: if not six.PY3:
class MyModel(models.Model): class MyModel(models.Model):