First, "get" is unnecessary--these should either exist, or cause errors, so regular indexing is appropriate.
Second, if there's no unused data in metadata, after this line you could just do :
`LanguagePack.objects.filter(xyz).update(**metadata)`