davebridges / mousedb

Django Based Database System for Experimental Subjects
http://davebridges.github.com/mousedb
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Restrict Some Views to User-Associated Strains #22

Closed davebridges closed 13 years ago

davebridges commented 13 years ago

To avoid clutter, set the default views for the following lists to only show restricted strains:

animal list, strain list, breeding list, study list, experiment list, todo lists

To do this, a user ManyToManyField is set up on the strain... and then objects will be filtered by the user's current strains. This will be done by setting up a view method which defines user_strains. All other views will call this method, and filter by strain=user_strains

davebridges commented 13 years ago

decided against this addition