models.py
def serialize(self):
        """Return object data in easily serializeable format"""
        return {
            'id': self.id,
            'doctor_id': self.doctor_id,
            'description': self.description,
        }
Return object data in easily serializeable format
Return object data in easily serializeable format
Return object data in easily serializeable format
def serialize(self):
        return {
            'id': self.id,
            'doctor_id': self.doctor_id,
            'description': self.description,
        }
def serialize ( self ) : return { 'id' : self . id , 'doctor_id' : self . doctor_id , 'description' : self . description , }
Return object data in easily serializeable format
Return object data in easily serializeable format
"""Return object data in easily serializeable format"""
self