1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #161 new

If you defined a model, exclude and fields in one class it uses to another

Alexandre González
created an issue

hi! I have two handlers class defining something as this:

{{{

!python

class FirstHandler(BaseHandler): model = Profile fields = ('field1', 'field2', )

def read(self...

class SecondHandler(BaseHandler): model = Profile fields = ('field3', 'field4', )

def read(self...

}}}

When I use the FirstHandler the reply gives me field3 & field4 when I like to receive field1 and filed2.

I test defining model and fields inside the read() function, but it doesn't work.

I don't know if it's really a bug, but I will thank you some kind of help.