add created & created by
This commit is contained in:
parent
8f9b1f8145
commit
e2e3285b66
|
|
@ -69,12 +69,14 @@ class EstablishmentGallerySerializer(serializers.ModelSerializer):
|
||||||
'title',
|
'title',
|
||||||
'is_main',
|
'is_main',
|
||||||
'created_by',
|
'created_by',
|
||||||
|
'created',
|
||||||
'image_size_in_KB',
|
'image_size_in_KB',
|
||||||
'cropbox',
|
'cropbox',
|
||||||
'cropped_image',
|
'cropped_image',
|
||||||
)
|
)
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
'created': {'read_only': True},
|
'created': {'read_only': True},
|
||||||
|
'created_by': {'read_only': True},
|
||||||
}
|
}
|
||||||
|
|
||||||
def validate(self, attrs):
|
def validate(self, attrs):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user