Skip to content

Instantly share code, notes, and snippets.

@dima-kov
Created January 28, 2016 05:45
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 dima-kov/adb3e82a779e81f76714 to your computer and use it in GitHub Desktop.
Save dima-kov/adb3e82a779e81f76714 to your computer and use it in GitHub Desktop.
#settings.py
BADGIFY_BADGE_MODEL = 'main.models.GuidaBadge'
#main.models
from badgify.models.base.badge import Badge as BaseBadge
class GuidaBadge(BaseBadge):
model_name = models.CharField(max_length=40)
required_number = models.IntegerField()
options = JSONField()
class Meta(BaseBadge.Meta):
abstract = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment