Import Member.number
from CORE
This commit is contained in:
parent
8917316a21
commit
6e51f36fc5
|
@ -483,6 +483,7 @@ class MemberImporter(FromCOREPOSAPI, importing.model.MemberImporter):
|
||||||
key = 'id'
|
key = 'id'
|
||||||
supported_fields = [
|
supported_fields = [
|
||||||
'id',
|
'id',
|
||||||
|
'number',
|
||||||
'customer_uuid',
|
'customer_uuid',
|
||||||
'joined',
|
'joined',
|
||||||
'withdrew',
|
'withdrew',
|
||||||
|
@ -548,6 +549,7 @@ class MemberImporter(FromCOREPOSAPI, importing.model.MemberImporter):
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': str(member['cardNo']),
|
'id': str(member['cardNo']),
|
||||||
|
'number': int(member['cardNo']),
|
||||||
'customer_uuid': customer.uuid,
|
'customer_uuid': customer.uuid,
|
||||||
'joined': joined,
|
'joined': joined,
|
||||||
'withdrew': withdrew,
|
'withdrew': withdrew,
|
||||||
|
|
Loading…
Reference in a new issue