Skip to content

Instantly share code, notes, and snippets.

@sevbo2003
Created February 16, 2022 17:30
Show Gist options
  • Save sevbo2003/3891e3c909750dd0b28ffe896a8b945a to your computer and use it in GitHub Desktop.
Save sevbo2003/3891e3c909750dd0b28ffe896a8b945a to your computer and use it in GitHub Desktop.
from django.db import models
class Post(models.Model):
title = models.CharField(max_length=200)
content = models.TextField(max_length=200, unique=True)
def __str__(self):
return self.title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment