-
Notifications
You must be signed in to change notification settings - Fork 6
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
Minor UI changes #20
Minor UI changes #20
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #20 +/- ##
===========================================
+ Coverage 86.79% 86.88% +0.08%
===========================================
Files 71 71
Lines 2204 2218 +14
Branches 114 115 +1
===========================================
+ Hits 1913 1927 +14
- Misses 274 275 +1
+ Partials 17 16 -1
Continue to review full report at Codecov.
|
src/shop/models.py
Outdated
@@ -256,7 +256,8 @@ class Product(UUIDModel, TimeStampedModel): | |||
active = models.BooleanField(default=True) | |||
|
|||
# cached quantity | |||
qty = models.IntegerField(default=0) | |||
qty = models.IntegerField(verbose_name='quantity', default=0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The verbose name needs to be internationalised.
src/wallet/models.py
Outdated
@@ -93,3 +100,7 @@ def countable(self): | |||
else: | |||
return self.trx_status in [enums.TrxStatus.PENDING, | |||
enums.TrxStatus.FINALIZED] | |||
|
|||
class Meta: | |||
verbose_name = 'Transaction' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The verbose names need to be internationalised (check all the instances in this file).
No description provided.