9👍
3👍
I’ll suggest the following
list_of_keys = []
for obj in File.objects.all().values_list('metadata', flat=True)
list_of_keys = list_of_keys + obj.keys()
Now you will have a list of keys, then you can do
set = {}
map(set.__setitem__, list_of_keys, [])
unique_keys = set.keys()
- [Django]-NoReverseMatch: with arguments '()' and keyword arguments
- [Django]-Relative font URLs in CSS cause 403s on S3
Source:stackexchange.com