Created
December 10, 2019 05:34
-
-
Save aballah-chamakh/069ed8fe9315a88f51decf1e23e5c674 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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