# Path: badges/models.py
# class FidelityBadge(Badge):
#     """ Fidelity Badge
#         These kinds of badges are granted when users create an account
#         in certain periods, i.e. during the Beta.
# 
#         It has the fields of the Parent and these:
#     """
#     end_date = models.DateTimeField(verbose_name='Deadtime for the Badge', blank=False, null=False)
# 
#     def __unicode__(self):
#         return "{} until {}".format(self.name, self.end_date)
# 
# class LanguageBadge(Badge):
#     """ Language Bytes count Badge
# 
#         These kind of badges are granted when users reach X bytes of code
#         in a language. Parameters are Number of bytes and Language.
#     """
#     bytes = models.IntegerField(verbose_name='Number of bytes or lines', blank=False, null=False)
#     language = models.CharField(verbose_name='Language. (ie: Ruby, Python, etc)', max_length=255, blank=False, null=False)
# 
#     def __unicode__(self):
#         return "{} badge from {} bytes of code".format(self.name, self.bytes)
# 
# class ForkBadge(Badge):
#     """ ForkBadge
# 
#         These kinds of badges are granted when user has X number of repos forked from
#         other user's repos. We want to make a comparision between "Fork" and "Force" from Star Wars
#         to make these badges funnier.
# 
#         i.e. 'May the Fork be with you'
#     """
#     forks = models.IntegerField(verbose_name='Number fo minimum repos forked', blank=False, null=False)
# 
# class LicenseBadge(Badge):
#     """ License Badge
#         These kind of badges analyze differente licenses in repos. If the user has
#         'nrepos' of X license, badge is granted.
#     """
#     nrepos = models.IntegerField(verbose_name='Number of repos for license', blank=False, null=False)
#     #For more info of licenses http://goo.gl/2w2wmi
#     license = models.CharField(verbose_name='License Key. (ie: MIT, GPLv3, etc) More in http://goo.gl/2w2wmi',
#                                max_length=255, blank=False, null=False)
# 
#     def __unicode__(self):
#         return "{} badge from {} license in {} repos".format(self.name, self.license, self.nrepos)
# 
# class CustomBadge(Badge):
#     """ Custom Badge
#         These kind of badge is granted if the Developer knows the 'code' to get it
#         before the expiration date!
# 
#         i.e. 'Assist to GitGaming presentation'
#         i.e. 'Be a participant of the CUSL Contest'
#     """
# 
#     code = models.CharField(blank=False, null=False, unique=True, max_length=255)
#     expiration_date = models.DateTimeField(blank=False, null=False)


from django.contrib import admin
from .models import FidelityBadge, LanguageBadge, ForkBadge, LicenseBadge, CustomBadge

# Register your models here.
admin.site.register(CustomBadge)
admin.site.register(FidelityBadge)
admin.site.register(LanguageBadge)
admin.site.register(ForkBadge)

# Path: badges/models.py
# class FidelityBadge(Badge):
#     """ Fidelity Badge
#         These kinds of badges are granted when users create an account
#         in certain periods, i.e. during the Beta.
# 
#         It has the fields of the Parent and these:
#     """
#     end_date = models.DateTimeField(verbose_name='Deadtime for the Badge', blank=False, null=False)
# 
#     def __unicode__(self):
#         return "{} until {}".format(self.name, self.end_date)
# 
# class LanguageBadge(Badge):
#     """ Language Bytes count Badge
# 
#         These kind of badges are granted when users reach X bytes of code
#         in a language. Parameters are Number of bytes and Language.
#     """
#     bytes = models.IntegerField(verbose_name='Number of bytes or lines', blank=False, null=False)
#     language = models.CharField(verbose_name='Language. (ie: Ruby, Python, etc)', max_length=255, blank=False, null=False)
# 
#     def __unicode__(self):
#         return "{} badge from {} bytes of code".format(self.name, self.bytes)
# 
# class ForkBadge(Badge):
#     """ ForkBadge
# 
#         These kinds of badges are granted when user has X number of repos forked from
#         other user's repos. We want to make a comparision between "Fork" and "Force" from Star Wars
#         to make these badges funnier.
# 
#         i.e. 'May the Fork be with you'
#     """
#     forks = models.IntegerField(verbose_name='Number fo minimum repos forked', blank=False, null=False)
# 
# class LicenseBadge(Badge):
#     """ License Badge
#         These kind of badges analyze differente licenses in repos. If the user has
#         'nrepos' of X license, badge is granted.
#     """
#     nrepos = models.IntegerField(verbose_name='Number of repos for license', blank=False, null=False)
#     #For more info of licenses http://goo.gl/2w2wmi
#     license = models.CharField(verbose_name='License Key. (ie: MIT, GPLv3, etc) More in http://goo.gl/2w2wmi',
#                                max_length=255, blank=False, null=False)
# 
#     def __unicode__(self):
#         return "{} badge from {} license in {} repos".format(self.name, self.license, self.nrepos)
# 
# class CustomBadge(Badge):
#     """ Custom Badge
#         These kind of badge is granted if the Developer knows the 'code' to get it
#         before the expiration date!
# 
#         i.e. 'Assist to GitGaming presentation'
#         i.e. 'Be a participant of the CUSL Contest'
#     """
# 
#     code = models.CharField(blank=False, null=False, unique=True, max_length=255)
#     expiration_date = models.DateTimeField(blank=False, null=False)


# Path: badges/admin.py
from django.contrib import admin
from .models import FidelityBadge, LanguageBadge, ForkBadge, LicenseBadge, CustomBadge


# Register your models here.
admin.site.register(CustomBadge)
admin.site.register(FidelityBadge)
admin.site.register(LanguageBadge)
admin.site.register(ForkBadge)

admin.site.register(LicenseBadge)