Django Add to a field in Models.py

前端 未结 0 1814
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 05:24

I have this code in models.py like so:

class Post(models.Model):
   likes = models.PositiveIntegerField(default=0)

I also have this template

相关标签:
回答
  • 消灭零回复
提交回复
热议问题