Created
April 22, 2020 13:25
-
-
Save paulonteri/686f05ece0892261f5b4806faecfd3f2 to your computer and use it in GitHub Desktop.
Simple Django Notes Model
This file contains 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 Note(models.Model): | |
title = models.CharField(max_length=20) | |
description = models.CharField(max_length=255) | |
note = models.TextField() # Actual note |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment