'Shortcut to create a consumer with random key/secret.'

def create_consumer(self, name, description=None, user=None, using=CONSUMER_DB):

    (consumer, created) = self.using(using).get_or_create(name=name)
    if user:
        consumer.user = user
    if description:
        consumer.description = description
    if created:
        (consumer.key, consumer.secret) = self.generate_random_codes()
        consumer.save()
    return consumer
