adminapi.request.calc_app_id - python examples

Here are the examples of the python api adminapi.request.calc_app_id taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

0 View Complete Implementation : models.py
Copyright MIT License
Author : innogames
@receiver(pre_save, sender=Application)
def set_auth_token(sender, instance, **kwargs):
    if not instance.auth_token:
        instance.auth_token = random_alnum_string(24)
    instance.app_id = calc_app_id(instance.auth_token)