Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # Django Model Choices {{tag>Django Model Choices}} <code> class Brand(BaseModel): group = models.ForeignKey(BrandGroup, on_delete=models.SET_NULL, null=True) maker = models.ForeignKey(Maker, on_delete=models.SET_NULL, null=True) name = models.TextField(unique=True) name_en = models.TextField(null=True) image = models.TextField(null=True) image_file = models.FileField(upload_to="brand_image", null=True) score = models.FloatField(null=True, default=0) active = models.BooleanField(default=False, db_index=True) COLLECTION_METHOD_CHOICES = ( ("requests", "requests"), ("playwright", "playwright"), ) collection_method = models.TextField( default="requests", choices=COLLECTION_METHOD_CHOICES ) # 수집 방식 </code> open/django-model-choices.txt Last modified: 2024/10/05 06:15by 127.0.0.1