Skip to content

Instantly share code, notes, and snippets.

View camilosanchez's full-sized avatar

Camilo Sanchez camilosanchez

  • Santo Domingo, Dominican Republic
View GitHub Profile
@camilosanchez
camilosanchez / gist:8297214
Created January 7, 2014 10:01
model for my app
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")