Skip to content

Instantly share code, notes, and snippets.

@shadow-identity
Created September 11, 2013 06:04
Show Gist options
  • Save shadow-identity/6519840 to your computer and use it in GitHub Desktop.
Save shadow-identity/6519840 to your computer and use it in GitHub Desktop.
model
class Requests(models.Model):
req = models.TextField(editable=False)
url = models.URLField(blank=True, editable=False)
datetime = models.DateTimeField(auto_now_add=True, editable=False)
method = models.CharField(max_length=10, blank=True, editable=False)
user = models.CharField(max_length=50, blank=True, editable=False)
priority = models.IntegerField(default=1)
class Meta():
ordering = ['id']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment