📌  相关文章
📜  python3 manage.py migrate - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:29.344000             🧑  作者: Mango

代码示例1
class Genre(models.Model):
    """Model representing a book genre."""
    name = models.CharField(max_length=200, help_text='Enter a book genre (e.g. Science Fiction)')

    def __str__(self):
        """String for representing the Model object."""
        return self.name