diff options
author | luxagraf <sng@luxagraf.net> | 2016-12-31 14:27:29 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-12-31 14:27:29 -0500 |
commit | 940412cc4b934c8bc48e5cb7939afa681cc8be0a (patch) | |
tree | 7521a948ea26de956cf6fd7a9b3812582bde1058 /app/ebay/models.py | |
parent | 2370d5eb25362b5f382b0ea07c433dc176bab74e (diff) |
added end date for auction
Diffstat (limited to 'app/ebay/models.py')
-rw-r--r-- | app/ebay/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/ebay/models.py b/app/ebay/models.py index 4338197..38f8e1c 100644 --- a/app/ebay/models.py +++ b/app/ebay/models.py @@ -1,6 +1,7 @@ import datetime import re from django.contrib.gis.db import models +from django.utils import timezone from bs4 import BeautifulSoup import requests @@ -22,6 +23,7 @@ class Item(models.Model): class TrackedItem(models.Model): url = models.CharField(max_length=200) title = models.CharField(max_length=200) + date_ending = models.DateTimeField(default=timezone.now) def save(self, **kwargs): super(TrackedItem, self).save() |