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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user