@@ -45,21 +45,21 @@ def process_organization(self, org_data):
45
45
46
46
try :
47
47
org , created = Organization .objects .update_or_create (
48
- slug = slug ,
49
- defaults = {
50
- "name" : data ["name" ],
51
- "description" : data .get ("description" , "" )[:500 ],
52
- "url" : data .get ("website_url" ),
53
- "tagline" : data .get ("tagline" , "" ),
54
- "license" : data .get ("license" , "" ),
55
- "categories" : data .get ("categories" , []),
56
- "contributor_guidance_url" : data .get ("contributor_guidance_url" , "" ),
57
- "tech_tags" : data .get ("tech_tags" , []),
58
- "topic_tags" : data .get ("topic_tags" , []),
59
- "source_code" : data .get ("website_url" ),
60
- "is_active" : True ,
61
- },
62
- )
48
+ slug = slug ,
49
+ defaults = {
50
+ "name" : data ["name" ],
51
+ "description" : data .get ("description" , "" )[:500 ],
52
+ "url" : data .get ("website_url" ),
53
+ "tagline" : data .get ("tagline" , "" ),
54
+ "license" : data .get ("license" , "" ),
55
+ "categories" : data .get ("categories" ) or None , # ✅ Use None instead of []
56
+ "contributor_guidance_url" : data .get ("contributor_guidance_url" , "" ),
57
+ "tech_tags" : data .get ("tech_tags" ) or None , # ✅ Use None instead of []
58
+ "topic_tags" : data .get ("topic_tags" ) or None , # ✅ Use None instead of []
59
+ "source_code" : data .get ("website_url" ),
60
+ "is_active" : True ,
61
+ },
62
+ )
63
63
64
64
# Handle Logo
65
65
if data .get ("logo_url" ):
0 commit comments