This commit is contained in:
Zergling_man 2021-12-12 19:39:26 +11:00
parent 47f9249151
commit aa4e26f69e

View File

@ -17,7 +17,7 @@ class Contact(models.Model):
url=models.CharField(max_length=500) url=models.CharField(max_length=500)
proto=models.CharField(max_length=100) proto=models.CharField(max_length=100)
comment=models.CharField(max_length=100) comment=models.CharField(max_length=100)
group=models.IntegerField(choices={0:'Preferred',1:'Suitable',2:'Discouraged',3:'Ignored',4:'Discontinued',5:'NSFW'}) group=models.IntegerField(choices=list({0:'Preferred',1:'Suitable',2:'Discouraged',3:'Ignored',4:'Discontinued',5:'NSFW'}.items()))
priority=models.IntegerField() priority=models.IntegerField()
def save(self,*args,**kwargs): def save(self,*args,**kwargs):