This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FooSerializer(serializers.ModelSerializer): | |
# Any subclass of a RelatedField, which would normally have a queryset | |
bar = serializers.HyperlinkedRelatedField( | |
queryset=Bar.objects.none(), # don't unintentionally expose information | |
) | |
def __init__(self, *args, **kwargs): | |
# Make sure that self.fields is populated | |
super().__init__(*args, **kwargs) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const GoogleApi = function(opts) { | |
opts = opts || {} | |
const apiKey = opts.apiKey; | |
const libraries = opts.libraries || []; | |
const client = opts.client; | |
const URL = 'https://maps.googleapis.com/maps/api/js'; | |
const googleVersion = '3.22'; | |
let script = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.alignment--left { | |
.public-DraftStyleDefault-block { | |
text-align; left; | |
} | |
} | |
.alignment--center { | |
.public-DraftStyleDefault-block { | |
text-align; center; | |
} | |
} |
OlderNewer