Skip to content

Instantly share code, notes, and snippets.

@SafPlusPlus
Created August 7, 2015 10:39
Show Gist options
  • Save SafPlusPlus/8087fa8916b7e6a1ed26 to your computer and use it in GitHub Desktop.
Save SafPlusPlus/8087fa8916b7e6a1ed26 to your computer and use it in GitHub Desktop.
from django.db import models
# Create your models here.
class TestModel(models.Model):
name = models.CharField(max_length=10)
reference = models.ForeignKey('TestModel', blank=True, null=True)
def __str__(self):
return self.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy