Skip to content

Instantly share code, notes, and snippets.

@anddam
Created October 19, 2016 20:40
Show Gist options
  • Select an option

  • Save anddam/afbd6e2fbc7400336198a8a395346ce6 to your computer and use it in GitHub Desktop.

Select an option

Save anddam/afbd6e2fbc7400336198a8a395346ce6 to your computer and use it in GitHub Desktop.
class Anomaly1(models.Model):
"Kind of anomaly that only brings its name"
name = models.CharField(max_length=10)
class Anomaly2(models.Model):
"Kind of anomaly that only brings a numeric value and no name"
intensity = models.FloatField()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment