def __len__(self):
        """
        len() used by several third party applications to calculate the length
        of choices. This will solve a bug related to generating fixtures.
        """
        count = len(self.countries)
        # Add first countries, and the break if necessary.
        count += len(self.countries_first)
        if self.countries_first and self.get_option("first_break"):
            count += 1
        return count
def __len__ ( self ) : count = len ( self . countries ) count += len ( self . countries_first ) if self . countries_first and self . get_option ( "first_break" ) : count += 1 return count
len() used by several third party applications to calculate the length
        of choices. This will solve a bug related to generating fixtures.