Am 04.10.2008 um 18:53 schrieb Vovk D:

>
>
> 2008/10/4, Benjamin Buch <[EMAIL PROTECTED]>:
>
> Category1:
> expense1:       3.5
> expense2:       3.5
> total:          7.0
>
> Category2:
> expense1:       2
> expense2:       3
> total:          5
>
> First, i think smth like sum you can do easy with JavaScript on the  
> client-side, if cant do it on the server-side.
> Second, logic like aggregation you must do in the View.
> Third, it's a bad idea to do smth like this in a Model :)

Na, I think this has to work without JavaScript.
But you are right, that's nothing for the model and should be handled  
in the view.
-benjamin
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to