Can a django model have embed classes?
I want to have a django model like this:

    class Model(models.Model):
     string = models.CharField()
     class ContactDetails:
      phone = models.IntegerField()

Is this possible? I've tried googling but it doesn't seem to answer my question

This would mean i'd have while accesssing:

    Model().ContactDetails.phone

working like that :)

Joe
Can a django model have embed classes?
===

I want to have a django model like this:

    class Model(models.Model):
     string = models.CharField()
     class ContactDetails:
      phone = models.IntegerField()

Is this possible? I've tried googling but it doesn't seem to answer my question

This would mean i'd have while accesssing:

    Model().ContactDetails.phone

working like that :)

Joe