Created
January 28, 2016 05:45
-
-
Save dima-kov/adb3e82a779e81f76714 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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