Re: How to use choices in model field

2022-11-03 Thread Aaryan R Soni
the end should make it work > > El El mié, 2 de nov. de 2022 a la(s) 10:23, Aaryan R Soni < > aaryanrson...@gnu.ac.in> escribió: > >> Okay, but still the problem is that how do I set the value of status >> field, as I have written in the code, verification.status = '

Re: How to use choices in model field

2022-11-02 Thread Aaryan R Soni
se square blackest [ ] > > status_choices=(('Unverified','Unverified'),('Verified','Verified')) > > On Wed, Nov 2, 2022, 5:52 PM Aaryan R Soni > wrote: > >> Hey guys, i am facing some issues using choices in models.CharField. I am >> creating a

How to use choices in model field

2022-11-02 Thread Aaryan R Soni
Hey guys, i am facing some issues using choices in models.CharField. I am creating a model which has username and status, where status is my choice field. it has 2 values, 'Unverified' and 'Verified'. class user_stutus(models.Model): status_choices=[('Unverified','Unverified'),('Verified','V