Sunday, February 2, 2014

Django model : defautl, blank and null

from django.db import models

# Create your models here.
class Student(models.Model):
    age= models.IntegerField(default=1, null=True, blank=True)


No comment

No comments:

Post a Comment