On Fri, 2009-05-01 at 05:11 -0700, Alfonso wrote:
> I've got a very simple Order model and an invoice model. Currently
> within the admin section, the invoice admin page contains associated
> orders as an edit_inline. The user adds orders to the invoice by
> clicking 'save and continue editing' at which point the system pulls
> through the correct prices. It's all good...
>
> However, the client has highlighted a potential blip with this - what
> if the staff admin just wants to put together an invoice and not save
> it to the database until all the correct orders have been added. Once
> the invoice is saved only then can it be seen by a customer logging
> in, it shouldn't be viewable till the admin has clicked 'save' (as in
> save and commit, not save and continue editing).
>
> So I'm wondering - can I create a custom 'save and continue editing'
> method that will accomplish that?
>
> Not sure If I explained that properly but I hope it makes sense!
Add a published flag to your Invoices model, only display published
Invoices to users, set the published flag when you want it to be
displayed?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---