implemented abb jobs to infoscreen
This commit is contained in:
+12
-1
@@ -1,3 +1,14 @@
|
||||
from django.db import models
|
||||
from django.utils import timezone
|
||||
|
||||
# Create your models here.
|
||||
class ABBJob(models.Model):
|
||||
sw_id = models.IntegerField(default=-1)
|
||||
title = models.CharField(max_length=255)
|
||||
QR = models.CharField(max_length=255, default="")
|
||||
created = models.DateTimeField(default=timezone.now)
|
||||
|
||||
def get_dict(self):
|
||||
return {
|
||||
"title": self.title,
|
||||
"QR": self.QR,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user