I have a form model that is generating a dynamic number of fields. It is using a modulo conditional to see if the amount of fields if divisible by 4 (4 column layout). If it doesn't divide, it adds another field and then tries again.
This is not working, it is returning field lists that are 30 (/4=7.5). I need this function to return only int numbers, no floats. Any idea how i can rewrite this? http://dpaste.com/65357/ Here's the page I'm using it on, you can see the ones that don't work right, it adds fields that don't fit into the layout: http://www.hftvnetwork.com/ProIn/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---