AA Member Audit
aa-memberaudit is an Alliance Auth app designed to provide comprehensive access to Eve Online character data for alliance and corporation management. It enables auditing of character assets, skills, mail, and other details within the Alliance Auth framework. The current version is 4.3.1 and it receives updates as needed, often in conjunction with major Alliance Auth releases.
Common errors
-
ModuleNotFoundError: No module named 'memberaudit'
cause The `aa-memberaudit` package is not installed or not added to `INSTALLED_APPS` in your Alliance Auth project.fixEnsure `pip install aa-memberaudit` has been run and `memberaudit` is present in your `INSTALLED_APPS` list in `local.py`. -
django.db.utils.ProgrammingError: relation "memberaudit_character" does not exist
cause Database migrations have not been applied for the `memberaudit` app after installation or upgrade.fixRun `python manage.py migrate` in your Alliance Auth environment to create the necessary database tables. -
TypeError: 'MemberauditAdmin' object is not callable (or similar admin-related error)
cause You are attempting to use or subclass the old `MemberauditAdmin` class which was renamed in v4.0.0.fixChange all references from `MemberauditAdmin` to `MemberAuditAdmin` (note the capital 'A') in your custom admin configurations. -
django.db.utils.OperationalError: no such column: memberaudit_corporation.auto_load_chars
cause This error typically indicates that your Alliance Auth instance is too old for the installed `aa-memberaudit` version, or migrations were not run correctly after an upgrade.fixEnsure your Alliance Auth is v4.0.0+ and run `python manage.py migrate` after upgrading `aa-memberaudit`.
Warnings
- breaking AA Member Audit v4.0.0+ requires Alliance Auth v4.0.0 or higher. Attempting to install or upgrade on an older Alliance Auth version will lead to compatibility errors.
- breaking The primary admin class was renamed from `MemberauditAdmin` to `MemberAuditAdmin` (capital 'A') in v4.0.0. Any custom overrides or references to the old class will break.
- breaking The permissions system underwent major changes in v4.0.0. Existing custom permissions or role assignments may need to be re-evaluated and re-configured. The `memberaudit_init_permissions` command is crucial.
- deprecated Several settings were removed in v4.0.0, including `AA_MEMBERAUDIT_ALLOW_PRIVATE_MAIL` and `AA_MEMBERAUDIT_AUTO_LOAD_ALL_CORPORATIONS`. Using them will no longer have an effect and may raise warnings.
Install
-
pip install aa-memberaudit
Imports
- Character
from memberaudit.models import Character
- AuditLog
from memberaudit.models import AuditLog
- MemberAuditAdmin
from memberaudit.admin import MemberauditAdmin
from memberaudit.admin import MemberAuditAdmin
Quickstart
# 1. Install the package: pip install aa-memberaudit
# 2. Add 'memberaudit' to your Alliance Auth project's INSTALLED_APPS in local.py
# local.py
INSTALLED_APPS += [
'memberaudit',
]
# 3. Add memberaudit URLs to your Alliance Auth project's urls.py
# urls.py
from django.urls import path, include
urlpatterns = [
# ... existing paths ...
path('memberaudit/', include('memberaudit.urls')),
# ...
]
# 4. Run migrations and initialize permissions
# (Execute these commands in your Alliance Auth virtual environment)
# python manage.py migrate
# python manage.py memberaudit_add_default_roles
# python manage.py memberaudit_init_permissions