update
This commit is contained in:
13
backEnd/home/serializers.py
Normal file
13
backEnd/home/serializers.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from rest_framework import serializers
|
||||
from .models import HomeBanner
|
||||
|
||||
|
||||
class HomeBannerSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = HomeBanner
|
||||
fields = [
|
||||
'id', 'icon', 'badge', 'heading', 'highlight', 'subheading',
|
||||
'description', 'button_text', 'button_url', 'display_order',
|
||||
'is_active', 'created_at', 'updated_at'
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user