I do not know why the code gets seperated. Here it is.

   alertcriteria1 = Alert_Criteria1.objects.all()

                for eachcriterion in alertcriteria1:
                        dataset1                 =
eachcriterion.dataset
                        criteria1_metric1        =
eachcriterion.criteria1_metric1

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

                for eachalert in alerts:
                                e_metric1         =
eachalert.criteria1_metric1

Any suggestions? Thanks a lot.
--~--~---------~--~----~------------~-------~--~----~
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