presnick / RunestoneServer

Interactive books for computer science
http://interactivepython.org
Other
26 stars 46 forks source link

Sections as Many2Many #8

Closed nickdotreid closed 10 years ago

nickdotreid commented 10 years ago

I redid the logic linking Sections to Auth_Users because I could not figure out what is getting screwup up with the database migrations (web2py's DAL leaves quite a bit to be desired)

I removed the section field from Auth_User and moved section code into its own file.

Users are linked to sections by a secondary table. All logic for getting, setting and deleting models is included into the Sections model. The views simply include logic for controlling input.