def generate(self, badge, user=None, amount=10, reusable=False):
        claim_group = '%s-%s' % (time(), random.randint(0, 10000))
        for i in range(0, amount):
            (DeferredAward(badge=badge, creator=user, reusable=reusable,
                           claim_group=claim_group).save())
        return claim_group
Same as db.define_table except that it does not repeat
dataset/ETHPy150Open mozilla/django-badger/badger/models.py/DeferredAwardManager.generate--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3/s3model.py/S3Model.define_table