hostnames registration application for I2P
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
568 B

from django.db import models
from pyi2phosts.lib.validation import validate_i2purl
class ExternalSource(models.Model):
name = models.CharField(max_length=128, unique=True)
url = models.CharField(max_length=256, validators=[validate_i2purl])
description = models.CharField(max_length=512, blank=True)
last_modified = models.DateTimeField(null=True, blank=True)
last_success = models.DateTimeField(null=True, blank=True)
etag = models.CharField(max_length=256, blank=True)
active = models.BooleanField(default=True)
def __unicode__(self):
return self.name