<reponame>jrdbnntt-com/com_jrdbnntt_wedding<filename>website/models/mail/subscription_group.py<gh_stars>0
from django.contrib import admin
from django.db import models


def init():
    """ Does nothing, just here to keep import """
    pass


class EmailSubscriptionGroup(models.Model):
    """ Email Subscription Groups """
    sendgrid_id = models.IntegerField(unique=True)
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=100)

    def __str__(self):
        return self.name


@admin.register(EmailSubscriptionGroup)
class EmailSubscriptionGroupAdmin(admin.ModelAdmin):
    list_display = ("sendgrid_id", "name", "description")
