Skip to content

Instantly share code, notes, and snippets.

@rogaha
Created April 8, 2014 17:08
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 rogaha/10157272 to your computer and use it in GitHub Desktop.
Save rogaha/10157272 to your computer and use it in GitHub Desktop.
ERROR = -1
PENDING = 0
BUILDING = 1
DONE = 2
BUILD_STATUS = (
(ERROR, "Error"),
(PENDING, "Pending"),
(BUILDING, "Building"),
(DONE, "Done")
)
build = models.ForeignKey(Build)
highland_build_code = models.CharField(max_length=50, blank=True, null=True)
source_build_url = models.CharField(max_length=200, blank=True, null=True)
status = models.IntegerField(choices=BUILD_STATUS, default=PENDING)
created_date = models.DateTimeField(default=timezone.now)
last_updated = models.DateTimeField(auto_now=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment