Hello,

I have following code:

        alertcriteria1 = Alert_Criteria1.objects.all
()...................................................(1.)

                for eachcriterion in
alertcriteria1:.................................................................
(2.)
                        dataset1                 =
eachcriterion.dataset.........................................(3.)
                        criteria1_metric1        =
eachcriterion.criteria1_metric1.........................(4.)

                alerts                   = Alert.objects.filter(Q(dataset =
dataset1)).......(5.)

                for eachalert in
alerts:.................................................................
(6.)
                                e_metric1         =
eachalert.criteria1_metric1................................(7.)


In line 7, the "criteria1_metric1" is acutally a value from line 4.
Right now Django complains. How to replace this value?

Thanks so much.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to