To make my code more readable, I need two methods so that the first one loads in memory the data that the second one will process.
class Sample(models.Model)
data = []
def get_data():
self.data = _get_data
def process_data():
for item in self.data:
_process_data(item)
The problem I'm having is that the first method can't write to the "field/attribute" because it says: : "'sample.sample' object attribute 'data' is read-only" while evaluating