model import in inclusion_tag not working?

2006-06-18 Thread der . elminator
hi, i wrote a simple inclusion_tag that's supposed to fetch some data from on of my apps models. code looks like: #myproject/myapp/templatetags/mytesttags.py from django import template register = template.Library() def mytest(): from myproject.myapp.models import xyz return { 'test':

Re: ManyToManyField reverse lookup not working

2006-05-16 Thread der . elminator
Hi Phil, I was already using the "new" syntax - so that wasn't the source of my problem. Honestly i still don't know the cause of the problem but by today it resolved by itself. Suddenly my objects contain the correct methods... I updated my trunk revision to latest (2917 as i write), that's

Re: Many to Many challenges

2006-05-16 Thread der . elminator
Hi, I am experiencing exactly the same error with the same trunk revision (2909). On irc no-one could really reproduce my django's behavior... I posted yesterday on this list (topic: "ManyToManyField reverse lookup not working"), but still don't have no clue why it doesn't work for me. Looking

Re: ManyToManyField reverse lookup not working

2006-05-16 Thread der . elminator
Hello Gunnar, I am sorry, that was kind of a copy error -- in my model names maxlength is correctly set and it validates without errors. I still have no clue why no reverse lookup methods are added. derelm --~--~-~--~~~---~--~~ You received this message because