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

migrations does not match models on python 3 #4232

Closed
xrmx opened this issue Jun 13, 2018 · 2 comments
Closed

migrations does not match models on python 3 #4232

xrmx opened this issue Jun 13, 2018 · 2 comments

Comments

@xrmx
Copy link
Contributor

xrmx commented Jun 13, 2018

Expected Result

With python3 makemigrations does not find changes.

Actual Result

Most of them looks bytestrings vs unicode, you may want to take at the Proxy models though.

Migrations for 'oauth':
  0009_auto_20180613_1550.py:
    - Alter field clone_url on remoterepository
    - Alter field ssh_url on remoterepository
    - Alter field vcs on remoterepository
Migrations for 'builds':
  0005_auto_20180613_1550.py:
    - Alter field error on build
    - Alter field output on build
    - Alter field state on build
    - Alter field type on build
    - Alter field privacy_level on version
    - Alter field slug on version
    - Alter field type on version
    - Alter field from_slug on versionalias
    - Alter field to_slug on versionalias
Migrations for 'projects':
  0024_auto_20180613_1550.py:
    - Alter field canonical on domain
    - Alter field count on domain
    - Alter field allow_promos on project
    - Alter field comment_moderation on project
    - Alter field conf_py_file on project
    - Alter field default_version on project
    - Alter field documentation_type on project
    - Alter field has_valid_webhook on project
    - Alter field language on project
    - Alter field privacy_level on project
    - Alter field programming_language on project
    - Alter field python_interpreter on project
    - Alter field repo on project
    - Alter field repo_type on project
    - Alter field suffix on project
    - Alter field theme on project
    - Alter field version_privacy_level on project
Migrations for 'redirects':
  0002_auto_20180613_1550.py:
    - Alter field redirect_type on redirect
    - Alter field to_url on redirect
Migrations for 'gold':
  0002_auto_20180613_1550.py:
    - Alter field level on golduser
Migrations for 'integrations':
  0003_auto_20180613_1550.py:
    - Create proxy model BitbucketWebhook
    - Create proxy model GenericAPIWebhook
    - Create proxy model GitHubWebhook
    - Create proxy model GitLabWebhook
    - Alter field integration_type on integration

I've run the command on 2.3.13 so may not match perfectly the output on master, still the few i've checked are not fixed.

@stsewd
Copy link
Member

stsewd commented Jun 13, 2018

Mostly are from help_text #3608

There is this discussion #4201 to fix the problem

@humitos
Copy link
Member

humitos commented Jun 13, 2018

Thanks for your report.

I'm closing this in favor of #4201 which it's tracking the same issue with different proposals to the solution..

@humitos humitos closed this as completed Jun 13, 2018
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

No branches or pull requests

3 participants