mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-03-29 19:53:51 -04:00
feat: enhance lodging management with date validation and update messages
This commit is contained in:
@@ -716,11 +716,13 @@ class UltraSlimCollectionSerializer(serializers.ModelSerializer):
|
||||
location__collections=obj
|
||||
).select_related('user').prefetch_related('location')
|
||||
|
||||
return ContentImageSerializer(
|
||||
serializer = ContentImageSerializer(
|
||||
images,
|
||||
many=True,
|
||||
context={'request': self.context.get('request')}
|
||||
).data
|
||||
)
|
||||
# Filter out None values from the serialized data
|
||||
return [image for image in serializer.data if image is not None]
|
||||
|
||||
def get_location_count(self, obj):
|
||||
"""Get count of locations in this collection"""
|
||||
|
||||
Reference in New Issue
Block a user