Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retriving model attribute directly. #1028

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Retriving model attribute directly. #1028

merged 1 commit into from
Dec 6, 2023

Conversation

Sujanadh
Copy link
Collaborator

@Sujanadh Sujanadh commented Dec 6, 2023

The previous code was using the get method to retrieve the attribute from model_obj, which resulted in an error. To address this issue, I replaced it with the more direct and appropriate attribute access using model_obj.id. like this

@github-actions github-actions bot added the backend Related to backend code label Dec 6, 2023
@Sujanadh Sujanadh closed this Dec 6, 2023
@Sujanadh Sujanadh changed the title etriving model attribute directly Retriving model attribute directly. Dec 6, 2023
@Sujanadh Sujanadh self-assigned this Dec 6, 2023
@Sujanadh Sujanadh requested a review from nrjadkry December 6, 2023 05:01
@Sujanadh Sujanadh reopened this Dec 6, 2023
@nrjadkry nrjadkry merged commit d7351c7 into development Dec 6, 2023
8 checks passed
@spwoodcock spwoodcock deleted the minor-fixes branch December 6, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code
Projects
Development

Successfully merging this pull request may close these issues.

2 participants