Skip to content

Instantly share code, notes, and snippets.

@uday12kumar
Last active January 28, 2020 12:52
Show Gist options
  • Save uday12kumar/e0eb6fca164fc69b9c689f174af69955 to your computer and use it in GitHub Desktop.
Save uday12kumar/e0eb6fca164fc69b9c689f174af69955 to your computer and use it in GitHub Desktop.
Django concurrency
class Slot(models.Model): 
id = models.AutoField(primary_key=True,)
user = models.ForeignKey(User)  
seats= models.IntegerField(default=10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment