is it possible to store some extra data along with a foreignkey relation ?
jaagr joined the channel
kezabelle1 has quit
hive-mind has quit
aviraldg has quit
the_drow joined the channel
aviraldg joined the channel
hive-mind joined the channel
babmisrkl has quit
Cromulent has quit
moldy
is it intentional that django-pipeline does not strip html comments?
r0bby_ has quit
nielsle has quit
epicowl joined the channel
Cromulent joined the channel
mihasya joined the channel
mihasya has quit
mihasya joined the channel
mihasya has quit
mihasya joined the channel
nielsle joined the channel
hexus0 joined the channel
NBhosting has quit
xBBTx joined the channel
sephioh has quit
issackelly has quit
Cromulent has quit
tobias1 joined the channel
rideh has quit
fle has quit
grandfatha has quit
dash_ joined the channel
felixsamora joined the channel
aladdinwang has quit
EyePulp joined the channel
EyePulp has quit
ialex has quit
chrislkeller joined the channel
xBBTx has quit
hexus0 has quit
EvilDMP joined the channel
ryborg joined the channel
igorline has quit
dash_ has quit
igorline joined the channel
matubaum has quit
Squarepy has quit
dash_ joined the channel
sdarby has quit
scott_w has quit
jaagr has quit
iiie has quit
jhgaylor has quit
iiie joined the channel
plfiorini has quit
clime joined the channel
Titanomachy has quit
jeffisabelle joined the channel
hyperair has quit
adrian_lc has quit
hexus0 joined the channel
clime
hello I have a model Image and couple of object that an image can relate to. I have got two options of modelling the relations. The first is to put attr into the image (which will be either ForeginKey or Many2ManyField) for each model and image can relate to. Or I can put attr "images" to each model that can have associated images (in case of some models it will be just one image). Which approach should I prefer?
eculver has left the channel
eculver joined the channel
Ergo^ has quit
onthestairs has quit
igorline has quit
munichlinux joined the channel
hetii has quit
hetii joined the channel
joshfinnie has quit
MicahCarrick joined the channel
aah joined the channel
felixsamora has quit
hetii has quit
shillos joined the channel
xcbt joined the channel
polishnorbi joined the channel
aliona_ joined the channel
powellc has quit
fmcgeough joined the channel
interpolite has quit
hoot_ joined the channel
maroloccio has quit
ohrstrom has quit
Nanor has quit
dirn has quit
chrismed has quit
ustunozgur joined the channel
hoot has quit
sayan joined the channel
aviraldg has quit
santiissopasse has quit
Andy80 has quit
aah has quit
tigerfinch has quit
aliona_ has quit
mikeliss has quit
felixsamora joined the channel
Cyph0n joined the channel
joshfinnie joined the channel
dirn joined the channel
moneydouble has quit
Sharebear has quit
mwmnj joined the channel
powellc joined the channel
jjasinski joined the channel
Sharebear joined the channel
Hello, I have model Image and couple of models that an image can relate to. I am considering two ways of modelling the image relations. The first one is to put field into the image for each model an image can relate to (the field will be either ForeginKey or Many2ManyField). The second way is to put field "images" to each model that can have associated images (in case of some models it will be just one image). Which way is preferred?
marcgwilson joined the channel
(this is rephrased and corrected version of my previous question, hopefully, this one is clearer)
dlam joined the channel
Lauxley
clime: ask yourself the question, what feels the more natural to you ?
marcgwilson
hey folks, I'm trying to generate a screenshot to save to my model when a video is uploaded. I'm trying to generate the screenshot in the model's save method, however I'm getting an invalid path to the video when I access the video's url.
ryborg has quit
the url I get seems to be missing the "upload_to" component of the path
aliona_ joined the channel
ryborg joined the channel
anyone have any ideas for a workaround or perhaps a better way than I'm currently using?
frankoid has quit
gazumps joined the channel
moneydouble joined the channel
clime
Lauxley: I am not sure anymore. Originally, the second way probably but there I would need to use Many2Many fields even for relations that are 1:n and saving an image would require a bit more work.
Lauxley
marcgwilson: if it's a bug, you want to dpaste the relevant code
souradeep has quit
clime: i would use the first, the more general model reference the other one
im afk
clime
Lauxley: ok thanks
marek_sv joined the channel
marek_sv has quit
arturrro joined the channel
joshfinnie has quit
juanpex_ has quit
marcgwilson
Lauxley: the problem is that in my model's save method, the file url doesn't include the "upload_to" component of the path
gerardodiego has quit
gazumps has quit
The-BB has quit
pjs joined the channel
kl4us joined the channel
The-BB joined the channel
Lauxley: is there a way to force the video field to save early at all?