Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Feature/upgrade django3.0 #26

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Feature/upgrade django3.0 #26

wants to merge 8 commits into from

Conversation

angvp
Copy link
Owner

@angvp angvp commented Jan 18, 2021

No description provided.

- Upgrade models, proxy and migrations
- YAPFied
- Update tests assertEqual instead assertEquals
So tests will be ran with all version of python3 that support Django 3.
(3.6, 3.7, 3.8)
- Add a CONTRIBUTING.rst
- Link to that CONTRIBUTING from README
- Add link to a heroku app that will run a live example
Copy link

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

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

Some food for thought

changuito/models.py Show resolved Hide resolved
return super(ItemManager, self).get(*args, **kwargs)


class Item(models.Model):
cart = models.ForeignKey(Cart, verbose_name=_('cart'))
quantity = models.DecimalField(max_digits=18, decimal_places=3,
cart = models.ForeignKey(Cart,

Choose a reason for hiding this comment

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

Similarly, with an explicit related_name would be better.

verbose_name=_('unit price'))
# product as generic relation
content_type = models.ForeignKey(ContentType)
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)

Choose a reason for hiding this comment

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

Likewise, with an explicit related_name would be better.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 80.861% when pulling 5379c99 on feature/upgrade-django3.0 into 1188d62 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 80.861% when pulling 5379c99 on feature/upgrade-django3.0 into 1188d62 on master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants