Skip to content

Instantly share code, notes, and snippets.

@shofetim
Created April 18, 2013 19:42
Show Gist options
  • Select an option

  • Save shofetim/5415648 to your computer and use it in GitHub Desktop.

Select an option

Save shofetim/5415648 to your computer and use it in GitHub Desktop.
number = models.PositiveIntegerField(null=False, blank=False, unique=True,
validators=[MinValueValidator(1)])
number = models.PositiveIntegerField(null=False, blank=False, unique=True,
validators=[MinValueValidator(1)])
number= models.PositiveIntegerField(
null=False,
blank=False,
default=72,
validators=[MinValueValidator(1)]
)
number= models.PositiveIntegerField(
null=False,
blank=False,
default=72,
validators=[MinValueValidator(1)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment