Hi,

The admin doesn't really have a way to do this. You could edit KeyValuePair 
inline on Dictionary.

Why not have a "Params" model that has a ForeignKey to Request?

Collin

On Friday, January 23, 2015 at 1:32:21 PM UTC-5, Sven Mäurer wrote:
>
> I want to manage a dictionary inline over the admin interface. These are 
> my models. What I got working is of course a separated management of 
> request and dictionary. But I want to add key value pairs in the request 
> admin interface with a TabularInline. Do I have to skip the dictionary in 
> some way or what do I have to do?
>
> class Dictionary(models.Model):
>     name = models.CharField(max_length=255)
> class KeyValuePair(models.Model):
>     container = models.ForeignKey(Dictionary, db_index=True)
>     key = models.CharField(max_length=240, db_index=True)
>     value = models.CharField(max_length=240, db_index=True)
> class Request(models.Model):
>     params = models.ForeignKey(Dictionary, related_name="params_map", 
> blank=True, null=True)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/89c71541-3395-4d27-9e5f-f01c5d592744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to