2019-10-26 15:25:21 +00:00
|
|
|
from django.db import models
|
2019-10-27 15:20:28 +00:00
|
|
|
from buyer.models import Card
|
|
|
|
import uuid
|
|
|
|
from django.db.models.signals import post_save
|
|
|
|
from django.dispatch import receiver
|
2019-10-26 15:25:21 +00:00
|
|
|
|
2019-10-27 15:20:28 +00:00
|
|
|
class CardURL(models.Model):
|
|
|
|
uuid = models.UUIDField(default=uuid.uuid4, primary_key=True)
|
|
|
|
card = models.ForeignKey(Card, models.CASCADE)
|
|
|
|
created = models.DateTimeField(auto_now_add=True)
|