# Path: open_connect/groups/models.py
# class Category(TimestampModel):
#     """Group Category"""
#     slug = models.SlugField(unique=True)
#     name = models.CharField(max_length=127)
#     color = models.CharField(
#         verbose_name='Category Color', max_length=7, default='#000000')
# 
#     class Meta(object):
#         """Meta options for Category model"""
#         verbose_name = 'Category'
#         verbose_name_plural = 'Categories'
# 
# 
#     def __unicode__(self):
#         """Unicode Representation of Category"""
#         return self.name


from django.contrib import admin
from django.contrib.auth.models import Group as AuthGroup
from open_connect.groups.models import Category
"""Admin functionality for group app"""



class CategoryAdmin(admin.ModelAdmin):
    """Admin for Group Categories"""
    readonly_fields = [
        'modified_at', 'created_at'
    ]



# Path: open_connect/groups/models.py
# class Category(TimestampModel):
#     """Group Category"""
#     slug = models.SlugField(unique=True)
#     name = models.CharField(max_length=127)
#     color = models.CharField(
#         verbose_name='Category Color', max_length=7, default='#000000')
# 
#     class Meta(object):
#         """Meta options for Category model"""
#         verbose_name = 'Category'
#         verbose_name_plural = 'Categories'
# 
# 
#     def __unicode__(self):
#         """Unicode Representation of Category"""
#         return self.name


# Path: open_connect/groups/admin.py
from django.contrib import admin
from django.contrib.auth.models import Group as AuthGroup
from open_connect.groups.models import Category

"""Admin functionality for group app"""



class CategoryAdmin(admin.ModelAdmin):
    """Admin for Group Categories"""
    readonly_fields = [
        'modified_at', 'created_at'
    ]



admin.site.register(Category, CategoryAdmin)