mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
HR milestone 2, application audit log and tracking.
This milestone brings in application auditing, allowing for people to track who modify what applications and provide acception/rejection reasons as part of the messages sent out to the users.
This commit is contained in:
11
hr/forms.py
11
hr/forms.py
@@ -2,7 +2,7 @@ from django import forms
|
||||
import settings
|
||||
|
||||
from hr.app_defines import *
|
||||
from hr.models import Application
|
||||
from hr.models import Application, Audit
|
||||
from eve_api.models import EVEPlayerCharacter, EVEPlayerCorporation
|
||||
|
||||
def CreateRecommendationForm(user):
|
||||
@@ -40,7 +40,7 @@ def CreateApplicationForm(user):
|
||||
def CreateApplicationStatusForm(admin):
|
||||
|
||||
if admin:
|
||||
form_choices = APPLICATION_STATUS_CHOICES
|
||||
form_choices = APPLICATION_STATUS_CHOICES_ADMIN
|
||||
else:
|
||||
form_choices = APPLICATION_STATUS_CHOICES_USER
|
||||
|
||||
@@ -54,3 +54,10 @@ def CreateApplicationStatusForm(admin):
|
||||
exclude = ('application')
|
||||
|
||||
return ApplicationStatusForm
|
||||
|
||||
|
||||
class NoteForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = Audit
|
||||
exclude = ('application', 'user', 'event')
|
||||
|
||||
Reference in New Issue
Block a user