> I have a list of ip in table, but this ip repeats many times. I > need to show each ip only once with some statistic.
You will need some custom SQL to take care of the "statistics" you need for each distinct IP address. From what I understand of your problem, you need the result set from a statement like this: select ip, count(*) from your_table group by ip See this doc for info on how to run such a custom SQL and fetch its resulting rows: http://www.djangoproject.com/documentation/model_api/#executing-custom-sql --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---