mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Distinct checks on new application forms
This commit is contained in:
@@ -12,7 +12,7 @@ from eve_api.app_defines import API_STATUS_OK
|
|||||||
def CreateRecommendationForm(user):
|
def CreateRecommendationForm(user):
|
||||||
""" Generate a Recommendation form based on the user's permissions """
|
""" Generate a Recommendation form based on the user's permissions """
|
||||||
|
|
||||||
characters = EVEPlayerCharacter.objects.filter(eveaccount__user=user)
|
characters = EVEPlayerCharacter.objects.filter(eveaccount__user=user).distinct()
|
||||||
applications = Application.objects.filter(status=APPLICATION_STATUS_NOTSUBMITTED)
|
applications = Application.objects.filter(status=APPLICATION_STATUS_NOTSUBMITTED)
|
||||||
|
|
||||||
class RecommendationForm(forms.Form):
|
class RecommendationForm(forms.Form):
|
||||||
@@ -27,7 +27,7 @@ def CreateRecommendationForm(user):
|
|||||||
def CreateApplicationForm(user):
|
def CreateApplicationForm(user):
|
||||||
""" Generate a Application form based on the user's permissions """
|
""" Generate a Application form based on the user's permissions """
|
||||||
|
|
||||||
characters = EVEPlayerCharacter.objects.filter(eveaccount__user=user, eveaccount__api_status=API_STATUS_OK)
|
characters = EVEPlayerCharacter.objects.filter(eveaccount__user=user, eveaccount__api_status=API_STATUS_OK).distinct()
|
||||||
corporations = EVEPlayerCorporation.objects.filter(application_config__is_accepting=True)
|
corporations = EVEPlayerCorporation.objects.filter(application_config__is_accepting=True)
|
||||||
|
|
||||||
class ApplicationForm(forms.Form):
|
class ApplicationForm(forms.Form):
|
||||||
|
|||||||
Reference in New Issue
Block a user