17 lines
461 B
Python
17 lines
461 B
Python
from django.db import models
|
|
|
|
|
|
class Job(models.Model):
|
|
"""An individual Job."""
|
|
|
|
title = models.CharField(max_length=255)
|
|
company = models.CharField(max_length=255)
|
|
location = models.CharField(max_length=255)
|
|
url = models.CharField(max_length=255)
|
|
|
|
created = models.DateTimeField(auto_now_add=True, editable=False)
|
|
modified = models.DateTimeField(auto_now=True, editable=False)
|
|
|
|
def __unicode__(self):
|
|
return self.title
|