Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created August 28, 2018 18:30
Show Gist options
  • Save chelseatroy/f7c860567a27e9088bbffe17ccbfc3e7 to your computer and use it in GitHub Desktop.
Save chelseatroy/f7c860567a27e9088bbffe17ccbfc3e7 to your computer and use it in GitHub Desktop.
Example of Proxy Model Visualization
from django.db import models
class Visualization(models.Model):
name = models.CharField(primary_key=True, max_length=200)
description = models.TextField()
position = models.IntegerField(default=200)
class = models.CharField(max_length=200) #We just added this line
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment