sure here is is:
---------------------
conception.concept.models:
---------------------
from django.db import models
LEVEL_CHOICES = (
('A', 'Level A'),
('B', 'Level B'),
('C', 'Level C'),
)
class Concept(models.Model):
client = models.CharField(maxlength=50)
campaign = models.CharField(maxlength=50)
campaign_brief_url = models.URLField(verify_exists=False)
title = models.CharField(maxlength=75)
blurb = models.TextField(maxlength=250)
writeup = models.TextField()
timestamp_created = models.DateTimeField(auto_now_add=True)
timestamp_last_updated = models.DateTimeField(auto_now=True)
level = models.CharField(maxlength=1, choices=LEVEL_CHOICES)
userid = models.CharField(maxlength=30)
used_in_campaign = models.BooleanField()
def __str__(self):
return "%s: %s" % (self.id, self.title)
class Admin:
pass
-------------------
conception.concept.search.py:
-------------------
from django.contrib.sites.models import Site
from stuff.search.helpers import SearchDefinition, make_date_lookup
class ConceptSearch(SearchDefinition):
model_module = 'conception.concept'
time_order_by = '-timestamp_last_updated'
search_fields = ('title', 'blurb', 'writeup')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---