nested dereferencing of values within value calls in templates

2009-03-17 Thread Jay Deiman
mplish the above with a highly inefficient nested loop: Template code: == {% for item in list1 %} {{ item }}: {% for item2 in list2 %} {% ifequal forloop.counter0 forloop.parentloop.counter0 %} {{ item2 }} {% endifequal %} {% endfor %} {% endfor %} =

Re: Custom filter() operators

2009-03-06 Thread Jay Deiman
g these quite extensively within my current project, I will be able to do code tweaking and testing, as well as some actual documentation, before submitting these to the Django upstream for inclusion. As noted previously, I think there would be a great benefit to allowing the easy addi

Custom filter() operators

2009-03-05 Thread Jay Deiman
I had the following Model, I could use something to the effect of Netblock.objects.filter(inet__cidrct="1.2.3.4") and get back a Netblock entry of "1.2.3.0/24", for example: class Netblock(BaseModel): inet = InetField() Thanks, Jay -- Jay Deiman \033:wq! --~--~-

Re: Unusual Schema question

2009-02-24 Thread Jay Deiman
Alex Gaynor wrote: > > > On Tue, Feb 24, 2009 at 2:10 PM, Jay Deiman <mailto:j...@splitstreams.com>> wrote: > > > Jay Deiman wrote: > > The example of the "Comparison" Model in the second link is, at first > > glance, *exactl

Re: Unusual Schema question

2009-02-24 Thread Jay Deiman
Jay Deiman wrote: > The example of the "Comparison" Model in the second link is, at first > glance, *exactly* what I am looking to do. I think I'm going to dig in > tomorrow and experiment with this configuration, but it looks like this > will be perfect for my need

Re: Unusual Schema question

2009-02-23 Thread Jay Deiman
hase posted, I think it's exactly what I'm looking for. Thanks, Jay -- Jay Deiman \033:wq! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Unusual Schema question

2009-02-23 Thread Jay Deiman
cases to see if those have been resolved...most likely they have. The example of the "Comparison" Model in the second link is, at first glance, *exactly* what I am looking to do. I think I'm going to dig in tomorrow and experiment with this configuration, but it looks like this wil

Unusual Schema question

2009-02-23 Thread Jay Deiman
xtend the Manager class? I'm wondering what people with more experience would do for this situation. If the above is not clear, please let me know where I need to clarify. Thank you. -- Jay Deiman \033:wq! --~--~-~--~~~---~--~~ You received this message bec