The true relational way would be to have another Model called
JobRunParameter with an FK on Parameter. It's getting a bit silly though and
all these look-ups are going to be a pain later on.
If Parameter is just a string key/value style thing, I might have simplified
things a little and instead of
Hi,
I have a model called Job and a model called Parameter. A Job will have
several parameters so I have a foreign key in the Parameter class.
In my admin I have included Parameter as inline object of Job so when I
create a job, I can automatically create parameters for the job.
Now I wan
2 matches
Mail list logo