Skip to content

Instantly share code, notes, and snippets.

@nwoow
Created December 31, 2019 11:10
Show Gist options
  • Select an option

  • Save nwoow/51e7892ed4b2ae166415a0f2cea4a9bb to your computer and use it in GitHub Desktop.

Select an option

Save nwoow/51e7892ed4b2ae166415a0f2cea4a9bb to your computer and use it in GitHub Desktop.
class Survey(models.Model):
question_name = models.TextField()
question_answer = models.CharField(max_length=300,null=True, blank=True)
user_id = models.CharField(max_length=200,null=True, blank=True)
session_id = models.CharField(max_length=200)
data = JSONField(null=True, blank=True)
created = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.question_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment