From c0d8e22ff6867118a21e86cb224d2e747cc20e48 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 20 Aug 2017 01:05:30 +0200 Subject: [PATCH] inherit from CampRelatedModel --- src/tickets/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tickets/models.py b/src/tickets/models.py index cd824666..eff3202d 100644 --- a/src/tickets/models.py +++ b/src/tickets/models.py @@ -4,7 +4,7 @@ import hashlib import base64 import qrcode -from django.db import models +from utils.models import CreatedUpdatedModel, CampRelatedModel from django.conf import settings from django.core.urlresolvers import reverse_lazy from django.utils.translation import ugettext_lazy as _ @@ -13,12 +13,13 @@ from utils.models import ( CreatedUpdatedModel ) from utils.pdf import generate_pdf_letter +from django.db import models logger = logging.getLogger("bornhack.%s" % __name__) # TicketType can be full week, one day. etc. -class TicketType(CreatedUpdatedModel, UUIDModel): +class TicketType(CampRelatedModel, UUIDModel): name = models.TextField() camp = models.ForeignKey('camps.Camp')