P
P
Pyjamec2011-04-23 11:07:47
Django
Pyjamec, 2011-04-23 11:07:47

Django admin?

I have an Article(post, topic) model that has a user field that points to the user who created this post. In general, the model can be any, the question remains the same.
I'm using django 1.3. When a user enters the admin panel and starts creating a post, the default behavior of the admin panel is this: djanga creates a list of users for this post (maybe it's the field type itself ???) and you need to select the user you need. I need that when adding a post, the user is not determined manually, but for example, the object of a logged-in user is taken and this info is added to the user field of the Article model. So the question is: how to achieve this?
Answers like "google it or put cms and see" are not valid :) Should admin actions be used? In what direction to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pyjamec, 2011-04-23
@Pyjamec

I think I already found it - docs.djangoproject.com/en/1.3//ref/contrib/admin/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question