Make member_id int, ignore username case
This commit is contained in:
parent
f84171de83
commit
15f736809d
|
@ -83,6 +83,7 @@ class HTMLField(serializers.CharField):
|
||||||
class TransactionSerializer(serializers.ModelSerializer):
|
class TransactionSerializer(serializers.ModelSerializer):
|
||||||
account_type = serializers.ChoiceField(['Interac', 'TD Chequing', 'Paypal', 'Dream Pmt', 'PayPal', 'Square Pmt', 'Member', 'Clearing', 'Cash'])
|
account_type = serializers.ChoiceField(['Interac', 'TD Chequing', 'Paypal', 'Dream Pmt', 'PayPal', 'Square Pmt', 'Member', 'Clearing', 'Cash'])
|
||||||
info_source = serializers.ChoiceField(['Web', 'DB Edit', 'System', 'Receipt or Stmt', 'Quicken Import', 'Paypal IPN', 'PayPal IPN', 'Auto', 'Nexus DB Bulk', 'IPN Trigger', 'Intranet Receipt', 'Automatic', 'Manual'])
|
info_source = serializers.ChoiceField(['Web', 'DB Edit', 'System', 'Receipt or Stmt', 'Quicken Import', 'Paypal IPN', 'PayPal IPN', 'Auto', 'Nexus DB Bulk', 'IPN Trigger', 'Intranet Receipt', 'Automatic', 'Manual'])
|
||||||
|
member_id = serializers.IntegerField()
|
||||||
member_name = serializers.SerializerMethodField()
|
member_name = serializers.SerializerMethodField()
|
||||||
date = serializers.DateField()
|
date = serializers.DateField()
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
|
@ -225,3 +225,4 @@ ACCOUNT_USERNAME_MIN_LENGTH = 3
|
||||||
ACCOUNT_AUTHENTICATION_METHOD = 'username'
|
ACCOUNT_AUTHENTICATION_METHOD = 'username'
|
||||||
OLD_PASSWORD_FIELD_ENABLED = True
|
OLD_PASSWORD_FIELD_ENABLED = True
|
||||||
LOGOUT_ON_PASSWORD_CHANGE = False
|
LOGOUT_ON_PASSWORD_CHANGE = False
|
||||||
|
ACCOUNT_PRESERVE_USERNAME_CASING = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user