Skip to content

Instantly share code, notes, and snippets.

Created August 28, 2018 18:17
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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)
def __repr__ (self):
def __str__ (self):
def from_data(csvfile):
raise NotImplementedError("You must implement from_data in your visualization subclass.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment