1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Define __all__ for models.py within each app

This commit is contained in:
Jeremy Stretch
2020-01-14 12:01:23 -05:00
parent 26a257b794
commit 6959785cd1
10 changed files with 84 additions and 8 deletions

View File

@@ -21,6 +21,14 @@ from .hashers import SecretValidationHasher
from .querysets import UserKeyQuerySet
__all__ = (
'Secret',
'SecretRole',
'SessionKey',
'UserKey',
)
def generate_random_key(bits=256):
"""
Generate a random encryption key. Sizes is given in bits and must be in increments of 32.