models.py silly errors - now validates
This commit is contained in:
parent
cc609943ac
commit
2f8d3ab0b1
|
@ -5,7 +5,7 @@ from datetime import datetime
|
||||||
|
|
||||||
class ProductGroup(models.Model):
|
class ProductGroup(models.Model):
|
||||||
url = models.URLField()
|
url = models.URLField()
|
||||||
created_by = models.ForeignKey(User)
|
created_by = models.ForeignKey(User, related_name='created_group')
|
||||||
name = models.CharField(max_length=255)
|
name = models.CharField(max_length=255)
|
||||||
created_time = models.DateTimeField(default=datetime.now)
|
created_time = models.DateTimeField(default=datetime.now)
|
||||||
description = models.TextField(blank=True)
|
description = models.TextField(blank=True)
|
||||||
|
@ -19,8 +19,8 @@ class ProductGroup(models.Model):
|
||||||
|
|
||||||
TIMELINE_CHOICES = (
|
TIMELINE_CHOICES = (
|
||||||
('now', 'now'),
|
('now', 'now'),
|
||||||
('10days' '10 days'),
|
('10days', '10 days'),
|
||||||
('1month', '1 month'),
|
('1month', '1 month')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
# Uncomment the next two lines to enable the admin:
|
# Uncomment the next two lines to enable the admin:
|
||||||
# from django.contrib import admin
|
from django.contrib import admin
|
||||||
# admin.autodiscover()
|
admin.autodiscover()
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
# Example:
|
# Example:
|
||||||
# (r'^trubox/', include('trubox.foo.urls')),
|
# (r'^trubox/', include('trubox.foo.urls')),
|
||||||
|
(r'^$', 'deals.views.index'),
|
||||||
# Uncomment the admin/doc line below to enable admin documentation:
|
# Uncomment the admin/doc line below to enable admin documentation:
|
||||||
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||||
|
|
||||||
# Uncomment the next line to enable the admin:
|
# Uncomment the next line to enable the admin:
|
||||||
# (r'^admin/', include(admin.site.urls)),
|
(r'^admin/', include(admin.site.urls)),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user