Closed madhuBayy closed 3 years ago
@ldko @somexpert This PR is ready to review. I removed __iexact
in surt_exists
and urls are getting nominated, not sure why since that part is expected to get stripped off when it goes to create(). But elsewhere it seems to work fine.
I still don't think these nominations are working as expected for me. Regarding using iexact
in get_or_create
kwargs, I think we need to keep them that way so the get
call is done using them, and in places where we use them also pass the field in the defaults to use in the create
if an object isn't found with the get
. This is based on the documents that to me look like they indicate the field won't be used at all from the kwarg if it has '__' in it and the data in the admin side looking like it is missing.
I still don't think these nominations are working as expected for me. Regarding using
iexact
inget_or_create
kwargs, I think we need to keep them that way so theget
call is done using them, and in places where we use them also pass the field in the defaults to use in thecreate
if an object isn't found with theget
. This is based on the documents that to me look like they indicate the field won't be used at all from the kwarg if it has '__' in it and the data in the admin side looking like it is missing.
I see what you were meaning. The 'entity', 'attribute' in urls in admin seems off. When I reverted using get_or_ceate() and let the previous code be, everything seems to be working fine. Do you both think I should drop off get_or_create for now ?
Hold off on reviewing this PR. I'll ping you both again when it is ready for review. Thank you!
@ldko @somexpert This is ready for review again.
@ldko @somexpert This is ready for review again!!
@ldko @somexpert This resolves #93 and #110