10 lines
242 B
Python
10 lines
242 B
Python
from django.db import models
|
|
|
|
|
|
class CaptchaUrl(models.Model):
|
|
slug = models.SlugField(primary_key=True)
|
|
destination = models.URLField()
|
|
|
|
def __str__(self):
|
|
return "[Redirect {} -> {}]".format(self.slug, self.destination)
|