Django Queryset instead of for loops and if statements in views.py

后端 未结 0 674
谎友^
谎友^ 2021-01-22 13:48

I\'ve got the following models:

class Post(models.Model):
    description = models.TextField()
    post_id = models.UUIDField(primary_key=True, default=uuid.uuid4         


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