# Path: kraut_intel/models.py
# class NamespaceIcon(models.Model):
#     namespace = models.CharField(max_length=255, unique=True)
#     icon = models.CharField(max_length=255)
# 
#     def __unicode__(self):
#         return u"%s (%s)" % (self.namespace, self.icon)
# 
# class PackageComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     package_reference = models.ForeignKey(Package, on_delete=models.CASCADE)
# 
# class CampaignComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     campaign_reference = models.ForeignKey(Campaign, on_delete=models.CASCADE)
# 
# class TTPComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     ttp_reference = models.ForeignKey(TTP, on_delete=models.CASCADE)
# 
# class IndicatorComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     indicator_reference = models.ForeignKey(Indicator, on_delete=models.CASCADE)
# 
# class ObservableComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     observable_reference = models.ForeignKey(Observable, on_delete=models.CASCADE)


from django.contrib import admin
from kraut_intel.models import NamespaceIcon, PackageComment, CampaignComment, TTPComment, IndicatorComment, ObservableComment
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4


# Register your models here.

admin.site.register(NamespaceIcon)
admin.site.register(PackageComment)
admin.site.register(CampaignComment)
admin.site.register(TTPComment)

# Path: kraut_intel/models.py
# class NamespaceIcon(models.Model):
#     namespace = models.CharField(max_length=255, unique=True)
#     icon = models.CharField(max_length=255)
# 
#     def __unicode__(self):
#         return u"%s (%s)" % (self.namespace, self.icon)
# 
# class PackageComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     package_reference = models.ForeignKey(Package, on_delete=models.CASCADE)
# 
# class CampaignComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     campaign_reference = models.ForeignKey(Campaign, on_delete=models.CASCADE)
# 
# class TTPComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     ttp_reference = models.ForeignKey(TTP, on_delete=models.CASCADE)
# 
# class IndicatorComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     indicator_reference = models.ForeignKey(Indicator, on_delete=models.CASCADE)
# 
# class ObservableComment(models.Model):
#     ctext = models.TextField()
#     author = models.ForeignKey(User, on_delete=models.CASCADE)
#     creation_time = models.DateTimeField(auto_now_add=True)
#     observable_reference = models.ForeignKey(Observable, on_delete=models.CASCADE)


# Path: kraut_intel/admin.py
from django.contrib import admin
from kraut_intel.models import NamespaceIcon, PackageComment, CampaignComment, TTPComment, IndicatorComment, ObservableComment

# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4


# Register your models here.

admin.site.register(NamespaceIcon)
admin.site.register(PackageComment)
admin.site.register(CampaignComment)
admin.site.register(TTPComment)

admin.site.register(IndicatorComment)