Hello,

Is there a way to override the automatic manipulators given by:

MyModel.AddManipulator()
MyModel.ChangeManipulator()

I am trying to do something like this:  I have the following models:

class EntryType(models.Model):
  name = models.CharField()

class Entry(models.Model):
  subject = models.CharField()
  text = models.TextField()
  type = models.ForeignKey(EntryType)
  [...]

class Article(models.Model):
  entry = models.OneToOneField(Entry)
  [...]

I'd like to automatically populate the EntryType based on the model
that is referencing Entry.  For instance, the Article's AddManipulator
would make entry.type.name = 'myproject.myapp.Article'.

I have found some threads discussing how to make an
Add/ChangeManipulator, but they don't cover how to override the default
ones.  Is this not possible or discouraged for some reason?

Thanks!
-berto.


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

Reply via email to