portier/restream/models.py

16 lines
409 B
Python
Raw Permalink Normal View History

2020-04-15 20:29:59 +02:00
from django.db import models
# Create your models here.
2020-04-20 14:51:44 +02:00
from srs.models import Streamkey
2020-04-15 20:29:59 +02:00
class RestreamConfig(models.Model):
streamkey = models.ForeignKey(Streamkey, on_delete=models.CASCADE)
target = models.CharField(max_length=500)
name = models.CharField(max_length=100)
active = models.BooleanField()
def __str__(self):
return '{} to {}'.format(self.streamkey, self.name)