No sorry it's late was just typing up the scenario to be more ledgible
(i'm doing a lot with random) meant while x < 20.
Basically looks like this to add a single image model:
from django.core.files import File
from job.models import Job, JobPhoto
job = Job.objects.get(pk=1544)
lp = JobPhoto()
Hi Timboy
Sorry but I've never seen:
for x in 20:
# do sth.
20 is an int object and not an iterable.
Is this snippet your code?
Nausikaa
On Sep 22, 10:15 am, Timboy wrote:
> Having issues saving model from within the shell.
>
> Using File from from
Having issues saving model from within the shell.
Using File from from django.core.files import File
http://pastebin.com/f3030ca1e
Tried this several different ways...
TIA
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
3 matches
Mail list logo