question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Django Migrations Generated when attempting to upgrade from dj-stripe < 2.4.3 to 2.4.3

See original GitHub issue

Software versions

  • Upgrading from dj-stripe version: < 2.4.3
  • Upgrading to dj-stripe version: 2.4.3
  • Python version: 3.7.10
  • Django version: 3.2
  • Database type and version: PG 11
  • Failing migration id: 0008

Can you reproduce the issue with the latest version of master? Yes

Describe the issue In Django 3.2, setting DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" and running makemigrations on an existing project causes a new migration to be made for dj-stripe.

Steps To Reproduce

  • Create an empty Django project
  • install dj-stripe
  • run migrations
  • set DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
  • new migration 0008 is made for dj-stripe

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
jleclanchecommented, Apr 23, 2021

No, but we can hard-specify the auto field to be a bigautofield there.

0reactions
czuecommented, May 7, 2021

@jleclanche running into some annoying issues getting set up in case you have any thoughts: https://github.com/dj-stripe/dj-stripe/issues/1348

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Process - Dj-Stripe
Then transition the squashed migration to a normal migration as per Django: Delete all the migration files it replaces; Update all migrations that...
Read more >
Migrations - Django documentation
Migrations ¶. Migrations are Django's way of propagating changes you make to your models (adding a field, deleting a model, etc.) into your...
Read more >
Version History and Release Notes - Pegasus documentation
A new example page showing how to use feature flags in Python, Django templates ... The major change that requires care in upgrading...
Read more >
dj-stripe 2.2.3 - PyPI
dj-stripe implements all of the Stripe models, for Django. Set up your webhook and start receiving model updates. You will then have a...
Read more >
pyupgrade and dj-stripe - Building SaaS with Python and ...
In this episode, I added pyupgrade to my pre-commit setup to get the latest Python syntax features for my app automatically.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found