Restrict updating fields if object is deactivated DRF

后端 未结 0 523
死守一世寂寞
死守一世寂寞 2021-01-14 12:24

I have a model:

class Trade(models.Model):
    name = models.CharField(max_length=255, unique=True)
    is_active = models.BooleanField(\'Active\', default=Tr         


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