Skip to content

userstanding is now OneToOneField - #11168

Merged
adampalay merged 1 commit into
masterfrom
adam/fix-userstanding-page
Jan 8, 2016
Merged

userstanding is now OneToOneField#11168
adampalay merged 1 commit into
masterfrom
adam/fix-userstanding-page

Conversation

@adampalay

Copy link
Copy Markdown
Contributor

@symbolist , sometime in the django upgrade, UserStanding was changed from a ForeignKey to a one to one field. Unfortunately there was no test that checked if the main page even ever loaded :)

@Qubad786 , may you please take a quick look?

Steps to reproduce the error:

  1. run LMS
  2. go to http://localhost:8000/accounts/manage_user_standing
  3. disable someone's account
  4. Reload page

expected behavior: no 500 error
actual behavior: 500 error

@Qubad786

Qubad786 commented Jan 7, 2016

Copy link
Copy Markdown
Contributor

I was able to reproduce, seems like it. Why was this ForeignKey before? OneToOne seems better. Nice catch!

@Qubad786 Qubad786 closed this Jan 7, 2016
@Qubad786 Qubad786 reopened this Jan 7, 2016
@Qubad786

Qubad786 commented Jan 7, 2016

Copy link
Copy Markdown
Contributor

I am really sorry just wrongly clicked 'Close and comment' instead of 'Comment' which will now cost rerunning all the tests again.

@Qubad786

Qubad786 commented Jan 7, 2016

Copy link
Copy Markdown
Contributor

jenkins run python

@Qubad786

Qubad786 commented Jan 7, 2016

Copy link
Copy Markdown
Contributor

jenkins run bokchoy

@adampalay

Copy link
Copy Markdown
Contributor Author

@Qubad786 probably because the original author had no idea what they were doing

@adampalay

Copy link
Copy Markdown
Contributor Author

@Qubad786 , thumbs up?
@symbolist ?

@Qubad786

Qubad786 commented Jan 8, 2016

Copy link
Copy Markdown
Contributor

👍

1 similar comment
@symbolist

Copy link
Copy Markdown
Contributor

👍

adampalay added a commit that referenced this pull request Jan 8, 2016
@adampalay
adampalay merged commit e892597 into master Jan 8, 2016
@adampalay
adampalay deleted the adam/fix-userstanding-page branch January 8, 2016 18:36
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.

3 participants