On 23 August 2010 22:38, Yangmin Li <yangmin...@gmail.com> wrote:
> sorry for the previous incomplete message.
> Here is what I want to ask, thanks in advanced.
> I have a model called request, after registered in admin backend, user can
> add new request object in admin pages.
> I want to modify the request-add page to this: only some of the model fields
> will be shown to user, others are hidden and will be given default values
> before being saved to database.
> I've already custom the change_form template to hide the fields that I do
> not want to show them to users.
> what else should I do ?

Does that work? If that isn't enough, e.g. you need to add some more
logic into the template processing, you can override the view methods
to provide extra context. See
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#other-methods

> On Mon, Aug 23, 2010 at 8:31 PM, Yangmin Li <yangmin...@gmail.com> wrote:
>>
>> Hi All ,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to