def sizeAttr(): try: return min(40, Language.objects.count()) except ProgrammingError: # If the database has not tables this would break otherwise return 40