<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_consumer(self, ip):
 """ Add consumer based on its ip address """

        Consumer.objects.get_or_create(key=self, ip=ip)