Here is my two attempts at trying to test if my DateTimeField is in
the past or the future.
# first attempt
def past(self):
return self.scheduled_time < datetime.now()
# It complained that i cannot compare a datetime to a string, hence my
second attempt
# second attempt
def past(self):
There, i found a better way of doing it!, thanks peopel,
On May 31, 11:15 am, Mozey <moha...@mozey.org> wrote:
> Hello people,
>
> I have a model object "X", which allows other model objects to relate
> many to many to it through generic table "Y". Both
Hello people,
I have a model object "X", which allows other model objects to relate
many to many to it through generic table "Y". Both kept in one app.
In another app, i have two model objects "J", and "K" who are related
to "X" through "Y".
The instances of "K" should be a subset of "J". How
I'm developing a very simple application which contains objects of
things. These objects are categorized, the categories are kept on the
side bar. The side bar will be there at all times.
In order to avoid having to fetch a list of categories at all of my
views. I'm simply populating the list of
Well, django user auth has groups implemented.
"It handles user accounts, groups, permissions and cookie-based user
sessions." (http://docs.djangoproject.com/en/dev/topics/auth/?
from=olddocs)
How can you effectively separate their views. Separate your apps based
on their nature, not based on
it sure does, thank you, i think thats exactly what i need.
On Oct 15, 11:16 am, Katja Loeffler <[EMAIL PROTECTED]> wrote:
> > I found couple of googlecode projects that seem like they may help me,
> > but they seem to be SERIOUSLY pre alpha!.
>
> > Any pointers? or ideas on how i can go about
Hello everybody,
My application requires me to store events from all over the world.
Which would mean that i need the time that an event starts, up to the
time that an event ends. So an example,
May 3rd, 3:40 PM
May 3rd, 3:50 PM
GMT +4
I have a quick table with all of the
7 matches
Mail list logo