Hi, I've this django model:
from django.db import models
class MyModel(models.Model):
foo_it = model.CharField(max_length=100)
foo_en = model.CharField(max_length=100)
def save(self):
print_all_field_starting_with('foo_')
super(MyModel, self).save()
So I want to get all field starting with foo (as an example) and do something with this. I can't do this in the code because I don't know all fields from model (I'm using django-transmeta)
so, how can I do this?
Thanks in advance ;)