Re: Queryset Filters

2014-04-08 Thread Jill Green
to execute them in Python. There > was some effort to implement filters also in Python, but there hasn't been > any activity on this recently. > > The only way to do this currently is to implement the filtering logic in > Python yourself. > > - Anssi > > On Wedn

Queryset Filters

2014-04-08 Thread Jill Green
I apologize if this question has already been asked and answered. I want to know if it's possible to filter out query sets without doing lazy queries or hitting the database again. Basically I have this query: qs= self.filter(a months worth of data) Now if I evaluate this query by doing this:

Re: ModelForm displays invalid cohice error.

2012-11-12 Thread Jill Green
Doesn't the default need to be one of the choices? > models.PositiveIntegerField(default=1, null=False, > choices=((1,'1'),(2,'2'),(3,'3'),(4,'4'),(5,'5'))) Sent from my iPhone On Nov 12, 2012, at 11:37 AM, Josue Balandrano wrote: > Hi, I am trying to create a very basic ratings and comments

Automatically create an InlineForm object inside an admin page

2012-08-28 Thread Jill Green
I hope someone has come across this problem before because it's driving me nuts. Basically I have a model, Partner and it has a PartnerAdmin page. Inside the partner I have another model called Data that is an Inline to the Partner. I used the model.ForeignKey in the Data to reference it back