Beispiel #1
0
    def create_api_key(self, description, account_id):
        apikey = ModelApiKey()
        apikey.account_id = account_id
        apikey.description = description
        apikey.generate()
        apikey.save()

        return apikey