• Tanner Prestegard's avatar
    Add AuthGroup model · c2b20c67
    Tanner Prestegard authored
    ligoauth.models.AuthGroup is an enhanced version of the builtin Django
    Group model. We add useful attributes like a description, ldap_name,
    and Tag.  These can be used to abstract things that are presently
    handled manually, like inheriting membership from an LDAP group or
    allowing access to view log messages/files with a specific Tag.
    
    I ran some tests comparing this multi-table inheritance setup to
    adding a OneToOneField and loading it with/without select_related.
    After 1K trials, the DB query times looked comparable and didn't
    require multiple queries for this arrangement, so the convenience
    seems to be worth it.
    
    The commit creates the model and populates an instance for existing
    each existing Django Group.
    c2b20c67
Name
Last commit
Last update
..
management Loading commit data...
migrations Loading commit data...
tests Loading commit data...
__init__.py Loading commit data...
admin.py Loading commit data...
backends.py Loading commit data...
context_processors.py Loading commit data...
decorators.py Loading commit data...
managers.py Loading commit data...
middleware.py Loading commit data...
models.py Loading commit data...
utils.py Loading commit data...
views.py Loading commit data...