If you want to make these editable you should declare your own form
for the admin and overwrite the save method.
--
eng. Ilian Iliev
Web Software Developer
Mobile: +359 88 66 08 400
Website: http://ilian.i-n-i.org
On Mon, Sep 26, 2011 at 7:37 PM, cesar.ortiz wrote:
>
It works for the List View, but it doesn't work for the Edit View
On 26 sep, 13:40, Ilian Iliev wrote:
> If these fields are not field in the model class you won't see them in the
> add/edit of the admin.
> If you want to show them in the view(list) section of the admin you
If these fields are not field in the model class you won't see them in the
add/edit of the admin.
If you want to show them in the view(list) section of the admin you can
define them as properties,
example:
class MyModel(models.Model):
# field here
@property
def remote_property(self):
Hi,
We have some fields that will appear in the view that we won't to be
part of the model. They are from other system and we don't wish to
store them in order to avoid the problems that will arise with the
duplication of data.
We also would like to reuse the admin as much as possible in order to
4 matches
Mail list logo