Skip to content

Instantly share code, notes, and snippets.

@slomo
Created July 13, 2016 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slomo/fc544b4353a20a240186c00a80f3bb9c to your computer and use it in GitHub Desktop.
Save slomo/fc544b4353a20a240186c00a80f3bb9c to your computer and use it in GitHub Desktop.
class Idea(module_models.Item):
slug = models.SlugField(max_length=512, unique=True)
name = models.CharField(max_length=512)
description = models.TextField()
image = models.ImageField(upload_to='ideas/images', blank=True,
validators=[validators.validate_hero_image])
def __str__(self):
return self.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment