Skip to content
This repository has been archived by the owner on Feb 12, 2020. It is now read-only.

Commit

Permalink
Require snippet title
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Jan 27, 2014
1 parent e63b795 commit 657036a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/models.py
Expand Up @@ -12,9 +12,9 @@


class Snippet(models.Model):
created = models.DateTimeField(auto_now_add=True)
title = models.CharField(max_length=100, blank=True, default='')
title = models.CharField(max_length=100)
code = models.TextField()
created = models.DateTimeField(auto_now_add=True)
linenos = models.BooleanField(default=False)
language = models.CharField(choices=LANGUAGE_CHOICES,
default='python',
Expand Down

0 comments on commit 657036a

Please sign in to comment.