Skip to content

Instantly share code, notes, and snippets.

@paulonteri
Created April 22, 2020 13:25
Show Gist options
  • Save paulonteri/686f05ece0892261f5b4806faecfd3f2 to your computer and use it in GitHub Desktop.
Save paulonteri/686f05ece0892261f5b4806faecfd3f2 to your computer and use it in GitHub Desktop.
Simple Django Notes Model
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