dhasegan / connect.academy

Educational platform
www.connect.academy
MIT License
2 stars 0 forks source link

When posting under #general of a course in which you are not registered (pending ..) you get a Server Error 500 #156

Closed ecnmst closed 10 years ago

tpllaha commented 10 years ago

oops my bad. I can fix it today. If daniel is online he can do it too in 5 min. The problem is that I'm creating the ForumPostActivity before the forum post exists in the db (because it's in the block "if not self.id:") so it should move below, after the ForumPost is saved.

Same for ForumAnswer

On Mon, Sep 8, 2014 at 1:32 PM, Arjaldo KARAJ notifications@github.com wrote:

— Reply to this email directly or view it on GitHub https://github.com/dhasegan/connect.academy/issues/156.

tpllaha commented 10 years ago

nvm, I'm doing it now

tpllaha commented 10 years ago

fixed

dhasegan commented 10 years ago

I thought that was the case but I checked models.py and it was indeed below the ().save(args...) and then I was confused. I must have been looking at the wrong models.py

tpllaha commented 10 years ago

I already fixed it that's why :p

On Mon, Sep 8, 2014 at 3:11 PM, Daniel Hasegan notifications@github.com wrote:

I thought that was the case but I checked models.py and it was indeed below the ().save(args...) and then I was confused. I must have been looking at the wrong models.py

— Reply to this email directly or view it on GitHub https://github.com/dhasegan/connect.academy/issues/156#issuecomment-54814753 .

dhasegan commented 10 years ago

I dont know man, im sure ive seen some other code... shit is weird

dhasegan commented 10 years ago

*sent at 4:20 lol