On May 15, 2008, at 11:56 , Vitaliy wrote:
> but when i run tests '$python manage.py test' - IPBlock's table is > empty (self.assertTrue(IPBlock.objects.all().count > 0) - failed) "count" is a method - you need to write smth like IPBlock.objects.all().count() You can also skip the .all() part, but it should work either way. --~--~---------~--~----~------------~-------~--~----~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---