from django.db import models


class AirtimeApplication(models.Model):
    name = models.CharField(max_length=50)
    ratio  = models.IntegerField(null=True, blank=True)
    max_per_day  = models.IntegerField(null=True, blank=True)
    amount  = models.IntegerField(null=True, blank=True)
    active = models.BooleanField()
    product_key = models.CharField(max_length=10)


    def __unicode__(self):
        return self.name

    class Meta:
        verbose_name = "Airtime Application"

class SendAirtime(models.Model):
    app_id = models.ForeignKey(AirtimeApplication)
    msisdn = models.CharField(max_length=30,
                              verbose_name="MSISDN (Mobile Number)")
    product_key = models.CharField(max_length=10)
    amount  = models.IntegerField()
    sent = models.BooleanField()
    created_at = models.DateTimeField(auto_now_add=True,
                                      blank=False,
                                      editable=False)

    def __unicode__(self):
        return self.msisdn

    class Meta:
        verbose_name = "Send Airtime"

from django.db import models


class AirtimeApplication(models.Model):
    name = models.CharField(max_length=50)
    ratio  = models.IntegerField(null=True, blank=True)
    max_per_day  = models.IntegerField(null=True, blank=True)
    amount  = models.IntegerField(null=True, blank=True)
    active = models.BooleanField()
    product_key = models.CharField(max_length=10)


    def __unicode__(self):
        return self.name

    class Meta:
        verbose_name = "Airtime Application"

class SendAirtime(models.Model):
    app_id = models.ForeignKey(AirtimeApplication)
    msisdn = models.CharField(max_length=30,
                              verbose_name="MSISDN (Mobile Number)")
    product_key = models.CharField(max_length=10)
    amount  = models.IntegerField()
    sent = models.BooleanField()
    created_at = models.DateTimeField(auto_now_add=True,
                                      blank=False,
                                      editable=False)

    def __unicode__(self):
        return self.msisdn

    class Meta:
        verbose_name_plural = "Send Airtime"

Fix application name in admin
Fix application name in admin
