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

show boolean option value to yes/no in stead of true/false #4005

Merged
merged 3 commits into from Nov 18, 2022

Conversation

wlaw01
Copy link
Contributor

@wlaw01 wlaw01 commented Nov 15, 2022

No description provided.

@joeyjurjens
Copy link
Contributor

Can you also add unit tests here?

class TestBooleanAttributes(TestCase):

@property
def _boolean_as_text(self):
if self.value:
return (_("Yes"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not _("Yes")?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i forgot to remove it. its fixed now

@wlaw01 wlaw01 requested review from specialunderwear and removed request for specialunderwear November 16, 2022 16:32
@codecov
Copy link

codecov bot commented Nov 17, 2022

Codecov Report

Merging #4005 (eb65105) into master (a253f65) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4005      +/-   ##
==========================================
- Coverage   87.18%   87.18%   -0.01%     
==========================================
  Files         291      291              
  Lines       15798    15812      +14     
==========================================
+ Hits        13774    13786      +12     
- Misses       2024     2026       +2     
Impacted Files Coverage Δ
src/oscar/apps/catalogue/abstract_models.py 91.85% <100.00%> (+0.06%) ⬆️
src/oscar/apps/catalogue/product_attributes.py 88.40% <0.00%> (-1.60%) ⬇️

@specialunderwear specialunderwear merged commit 3dee0ae into django-oscar:master Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants