carribeiro / vdeli

Video Delivery Network
2 stars 0 forks source link

Implement a separate main_form for the VDN staff #13

Open carribeiro opened 13 years ago

carribeiro commented 13 years ago

The main_form for VDN staff should be different from the one that's seen by the publishers.

PROPOSAL:

carribeiro commented 13 years ago

More detail:

1) The "index" view (the root of the website) needs to be a redirect page. 2) If the user is from the staff (request.user.is_staff), redirect it to the "/staff" page, which will use the staff_home view.. 3) If the user is not from the staff (is a publisher), redirect it to the "/customer" page, which will use the customer_home view. 4) The current index page will become the new "customer_home" view.

carribeiro commented 13 years ago

After some changes on other parts of the project, the expected behavior is:

1) After login, all users are directed to the index view (url: ^/$) 2) The index view will check if the user is_staff or not. 3) Staff users will be directed to the transfer_queue view (url: ^transfer_queue/$) 4) Normal customers (publishers) will be redirected to the publisher view (url: ^publisher/$) 5) The publisher view is the same as the old main_form.