hi

i need to process a set of denormalized data in single model field.
for example,

class Place(Model):
    location = LocationField()

it's rendered as one single text field, where we insert address, then by
this address we find out corresponding district and nearest subway station

and write to database something like:

class Location(Model):
    address = CharField()
    subway = ManyToManyField(Subway)
    district = ForeignKey(District)

class Place(Model):
    location = ForeignKey(Location)

how can i override field's save to db process to generate Location object
and save corresponding key to Place?

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to