Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created December 10, 2019 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aballah-chamakh/069ed8fe9315a88f51decf1e23e5c674 to your computer and use it in GitHub Desktop.
Save aballah-chamakh/069ed8fe9315a88f51decf1e23e5c674 to your computer and use it in GitHub Desktop.
from django.db import models
class Review(models.Model):
username = models.CharField(max_length=255)
content = models.TextField()
def __str__(self):
return '{username} => {content}'.format(username=self.username,content=self.content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment