Skip to content

Instantly share code, notes, and snippets.

@saketkc
Created December 8, 2011 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saketkc/1446738 to your computer and use it in GitHub Desktop.
Save saketkc/1446738 to your computer and use it in GitHub Desktop.
from django.db import models
from django.forms import ModelForm
from django.contrib.auth.models import User
class ReportTypes(models.Model):
def __unicode__(self):
return self.report_name
report_name = models.CharField(max_length=100)
report_element_json_list = models.TextField(max_length=1000)
report_belongs_to_lab = models.ForeignKey(User)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment