I Have an object that have this method. def is_available(self, da, a): if self.manutenzioni.filter(data_inizio__lte=da, data_fine__gte=a).count() > 0: return False else: return True
I want to make a method that get all objects available from data to data (i.e. doesn't have manutenzioni in that periods). Is it possible to make a filter for manager or I have to make a custom SQL query? Thanks in advance, best regards. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby & Giochi, l'e-commerce del divertimento -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.