This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib.auth.models import User | |
# Create your models here. | |
class Offer(models.Model): | |
offer_owner = models.ForeignKey(User, related_name="offers") | |
created_at = models.DateTimeField(auto_now_add=True, editable=False) | |
updated_at = models.DateTimeField(auto_now=True, editable=False) | |
business_name = models.CharField(max_length=255, verbose_name="nombre de la empresa") |
NewerOlder