Additionally, if I change any of the other elements in the view, say: es = ExamplTESTFORFAULT.object.all() it doesn't raise an error. Only when there is a syntax error.
On Feb 9, 11:53 am, Nick <nickt...@gmail.com> wrote: > I have a view for an application that loops through a queryset and > cleans the data for a certain kind of output but leaves all the DB > data in tact as it was entered for archiving purposes. There are > multiple conditional checks that are working fine but anything new > I've added or subtracted from the view file isn't being passed to the > template. If I break syntax in the views it will throw and error. > > Here is an example: > > class Example(models.Model): > field1 > field2 > field3 > > views: > > es = Example.objects.all() > > for e in es: > if e.field1 and e.field2: > e.field_check = true > > This sort of comparison happens a lot throughout the entire view and > are complex enought to justify doing it in the view instead of the > template. However, when I try to change or make any additions (add a > new check) then it doesn't show. -- 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.