Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
e, lazy="dynamic")) space_commercial_products=db.relationship("SpaceCommercialProduct", backref=db.backref( "spaces", uselist=True, lazy="dynamic")) space_document=db.relationship("SpaceDocument", backref=db.backref( "spaces

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
nko hinglish kaisa samjhenga? 😂 >>> >>> Teko field pe unique constraint lagana padenga >>> >>> Teko no wapas 1 se start karneke liye query maarana padenga >>> >>> last_no = Model.objects.filter(categorycode="blah", >>> citycode=

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
st_no = Model.objects.filter(categorycode="blah", >> citycode="blah-blah").count() >> >> unique_code ="LM" + categorycode >> + citycode + str(last_no + 1) >> >> >> Aisa code likkha toh result milenga 😋 >> >> >>

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
t; Teko no wapas 1 se start karneke liye query maarana padenga > > last_no = Model.objects.filter(categorycode="blah", > citycode="blah-blah").count() > > unique_code ="LM" + categorycode > + citycode + str(last_no + 1) > > > Aisa code likkha t

Immediately Need Help

2021-02-19 Thread Kritika Paul
I have to create a unique code for each space saved in dbAb db me save krne k lie, wo multiple part me save ho rha hai, multiple models bhi hai uske.1st model se mujhe space category ka name uthana hai 2nd se city code Category alag alg ho skti hai To code genrate hoga LM-categorycode-citycode-0

Project setup

2020-09-04 Thread Kritika Paul
someone reply soon. -- Regards, Kritika Paul rkritikapau...@gmail.com +91-7905147674 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user