similar to above you can change this to:
if not name or not data.get('seed_ratio'):