LoginSignup
1
0

More than 5 years have passed since last update.

[Django] Model Class内でのMeta Classの記述場所

Posted at

こう書いてました

Person.py
class Person(models.Model):

    class Meta:
        verbose_name_plural = 'people'

    """
    fieldの定義
    """

ですが、こう書くらしい

Person.py
class Person(models.Model):

    """
    fieldの定義
    """

    class Meta:
        verbose_name_plural = 'people'

引用元

Coding style | Django documentation | Django
https://docs.djangoproject.com/en/1.8/internals/contributing/writing-code/coding-style/#model-style

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0