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-00001Next time jb category, B 
hogi to number 1 se hi start hoga, ni to category same hai to fr se 2 allot 
ho jaega
Eg Category - CW, COM
City - Noida, DelhiSpace 1 - Cw category
Code space 1- LMCWNoida00001Space2 - CW Category
CODE SPACE2 - LMCWDelhi00002Space 3 - COM category
CODE SPACE 3- LM-COM-NOIDA0001

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/690debd2-46e0-497f-92a8-3abbc391b97dn%40googlegroups.com.

Reply via email to