Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Custom ChangeManipulator Needs to Load Data [RSS Feed]

#1 Oct. 26, 2005 22:13:55

A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Custom ChangeManipulator Needs to Load Data


I am doing a custom manipulator and I must load an object's data and
orgenize it in my manipulator's fields. How do I do that?

In my custom manipulator I placed a load function that sends in my
object's ID. My load function is loading that object, but I don't know
what to set.

For example, something like the following: (Doesn't work by the way)
def load(self, id):
p = persons.get_object(pk=id)
self.fields = p.first_name

Offline

  • Root
  • » Django
  • » Custom ChangeManipulator Needs to Load Data [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support