<filename>main_app/models.py<gh_stars>0
from django.db import models
# Create your models here.


class sites(models.Model):
    url = models.CharField(max_length=1000)
    list = models.CharField(max_length=1000, verbose_name="linked from (json format)")

    def __str__(self):
        return self.url

    class Meta:
        verbose_name_plural = "sites"


class statuses(models.Model):
    url = models.CharField(max_length=1000)
    code = models.CharField(max_length=1000, verbose_name="status code")

    def __str__(self):
        return "Status :: " + str(self.code) + ", at link :: " + str(self.url)

    class Meta:
        verbose_name_plural = "statuses"


class redirects(models.Model):
    old_url = models.CharField(max_length=1000, verbose_name="from")
    new_url = models.CharField(max_length=1000, verbose_name="to")

    def __str__(self):
        return str(self.old_url) + " >>>>>>>> " + str(self.new_url)

    class Meta:
        verbose_name_plural = "redirects"
<filename>main_app/models.py<gh_stars>0
from django.db import models
# Create your models here.


class sites(models.Model):
    url = models.CharField(max_length=1000)
    list = models.CharField(max_length=1000, verbose_name="linked from (json format)")

    def __str__(self):
        return self.url

    class Meta:
        verbose_name_plural = "sites"


class statuses(models.Model):
    url = models.CharField(max_length=1000)
    code = models.CharField(max_length=1000, verbose_name="status code")

    def __str__(self):
        return "Status :: " + str(self.code) + ", at link :: " + str(self.url)

    class Meta:
        verbose_name_plural = "statuses"


class redirects(models.Model):
    old_url = models.CharField(max_length=1000, verbose_name="from")
    new_url = models.CharField(max_length=1000, verbose_name="to")

    def __str__(self):
        return str(self.old_url) + " >>>>>>>> " + str(self.new_url)

    class Meta:
        verbose_name_plural = "redirects"
# Create your models here.