Re: list_filter and sing urls ..

2006-07-11 Thread Spock
Thanks ! ..that is what I need :) I'm always wonder how You find time for activity on this list ...36h day timezone ? :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

list_filter and sing urls ..

2006-07-11 Thread Spock
Hello, I'm trying to build application based ond admin interface but here is problem :) If i create function that return html it is escaped when used in list_filter Example class Deal(Model): owner = CharField(maxlength=64) bla bla ... def url_to_contract(self): return '%s

Re: after_acreate after_change

2006-07-03 Thread Spock
Yes yes :) That was the case :) It exactly fit my needs Thankyou very much.. Regards - Spock - male :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: after_acreate after_change

2006-07-03 Thread Spock
sysadmin that there change in customer service type for non standart value :) Thanx for reply looks like I'll ned to do this as some function in views.py with some try except chain.. Regars, Spock. --~--~-~--~~~---~--~~ You received this message becaus

after_acreate after_change

2006-07-03 Thread Spock
Hello, is there some equvalent to rails actions after_create,after_change ?? Or where start write such tasks ? I'll would like to send e-mails under some actions made in admin interface - some specific updates or creations.. Regars

Re: queryset.latest bug

2006-06-22 Thread Spock
Thx, In this case if I want get [ ] if result is 0 i need to write my own method .. Regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@g

queryset.latest bug

2006-06-22 Thread Spock
nt_set.latest('created_at') --- django.db.models.base.DoesNotExist Traceback (most recent call last) /home/spock/py/wfs/ /usr/lib64/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/models/manager.py in latest(self, *args, **kwargs) 85

Re: Global Escape

2006-06-12 Thread Spock
This looks promising. I'll try. IMHO such mode should be set in setings.py. You should have to choose beetwen "default deny" and "default accept" Maybe Adrian and rest of core dev will include such feature in next release with: DEFAULT_ESCAPE_FILTER=False for reverse compatibility :) --~--~-

Global Escape

2006-06-09 Thread Spock
Hello. I've application where most of data is fetched from database. Those data are inserted by people without "trust", so in every template I'm using |escape filter ...so a question is : Is there is some method to enable global escape filter ? :) --~--~-~--~~~---~

Django magic removal and access to user into template.

2006-06-05 Thread Spock
Helo. I'm trying to get acces to auth mechanizm into template (user object). Currently I'm using such construction: at beggining of my views.py: -- from django.template import RequestContext as Context from django.shortcuts import render_to_response def index(request): ..[cut bla bla ]

Re: MEDIA_ROOT error ?

2006-03-14 Thread Spock
Thanx - You were right - comma missed :) Everything is ok now :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscrib

Re: MEDIA_ROOT error ?

2006-03-14 Thread Spock
#x27;tuple' object is not callable Exception Location: /home/spock/python/iwywiad/urls.py in ?, line 5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

MEDIA_ROOT error ?

2006-03-14 Thread Spock
Hello, I'm trying to setup MEDIA_ROOT for test application. Here are reults :) settings.py MEDIA_ROOT = '/home/spock/python/iwywiad/media/' MEDIA_URL = '/media' ADMIN_MEDIA_PREFIX = '/media/admin/ [EMAIL PROTECTED] iwywiad]$ ls -l /home/spock/py/iwywiad/media

MEDIA_ROOT error ?

2006-03-14 Thread Spock
Hello, I'm trying to setup MEDIA_ROOT for test application. Here are reults :) settings.py MEDIA_ROOT = '/home/spock/python/iwywiad/media/' MEDIA_URL = '/media' ADMIN_MEDIA_PREFIX = '/media/admin/ [EMAIL PROTECTED] iwywiad]$ ls -l /home/spock/py/iwywiad/media

MEDIA_ROOT error ?

2006-03-14 Thread Spock
Hello, I'm trying to setup MEDIA_ROOT for test application. Here are reults :) settings.py MEDIA_ROOT = '/home/spock/python/iwywiad/media/' MEDIA_URL = '/media' ADMIN_MEDIA_PREFIX = '/media/admin/ [EMAIL PROTECTED] iwywiad]$ ls -l /home/spock/py/iwywiad/media

MEDIA_ROOT error

2006-03-14 Thread Spock
Hello, I'm trying to setup MEDIA_ROOT for test application. Here are reults :) settings.py MEDIA_ROOT = '/home/spock/python/iwywiad/media/' MEDIA_URL = '/media' ADMIN_MEDIA_PREFIX = '/media/admin/ [EMAIL PROTECTED] iwywiad]$ ls -l /home/spock/py/iwywiad/media