mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
Add missing blank=True
to model in tutorial.
This commit is contained in:
parent
5432f9ba49
commit
41d3fe09cf
|
@ -86,7 +86,7 @@ For the purposes of this tutorial we're going to start by creating a simple `Sni
|
||||||
|
|
||||||
class Snippet(models.Model):
|
class Snippet(models.Model):
|
||||||
created = models.DateTimeField(auto_now_add=True)
|
created = models.DateTimeField(auto_now_add=True)
|
||||||
title = models.CharField(max_length=100, default='')
|
title = models.CharField(max_length=100, blank=True, default='')
|
||||||
code = models.TextField()
|
code = models.TextField()
|
||||||
linenos = models.BooleanField(default=False)
|
linenos = models.BooleanField(default=False)
|
||||||
language = models.CharField(choices=LANGUAGE_CHOICES,
|
language = models.CharField(choices=LANGUAGE_CHOICES,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user