Re: Proposal: QuerySet.exists() method

2007-07-13 Thread Frédéric Roland
Why not QuerySet.isEmpty() ? Adrian Holovaty a écrit : > I'd like to add a QuerySet.exists() method, which would return True or > False if the given QuerySet contains at least one record. This would > be more efficient than qs.count() or len(qs) because it would perform > the following SQL under

Re: European VAT registration number validation web service

2007-04-09 Thread Frédéric Roland
Hi, > Can you provide an URL for those who haven't found such service? (The > spanish site for checking VAT's is like... s**t) Question 16 in VIES faq has a link to WSDL file: http://ec.europa.eu/taxation_customs/vies/en/faqvies.htm#item16 There is also a form that can be used for manuel quer

European VAT registration number validation web service

2007-04-09 Thread Frédéric Roland
Hi, I found an official web service from the european union to validate VAT registration numbers using SOAP. I will have to use that for my projects but I'd like to share it with Django community. At this time I just started to play with it but I wanted to discuss how to integrate that and w