Kaydet (Commit) 726e5767 authored tarafından Marc Tamlyn's avatar Marc Tamlyn

Merge pull request #1143 from AndreaCrotti/master

A simple docstring to clarify a part of the code that might be confusing to understand
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment