can I update a field based on another field like here, where deleted_at and updated_at are in the same row of the same model? https://dpaste.de/q2qJ
DrNo joined the channel
mazert_ has quit
DrNo has quit
DrNo joined the channel
DrNo has quit
The-Kid has quit
seems there has to be a better way then iterating at the application level
brunch875 has quit
falk0n has quit
asamarchyan joined the channel
DrNo joined the channel
Dratone joined the channel
empedokles78
Is "git push -u origin master" only used on the first push?
nero has quit
hamub joined the channel
Xorg has quit
nero joined the channel
jas02 joined the channel
cmheisel_ has quit
zamro has quit
HowardwLo joined the channel
zamro joined the channel
jeyraof has quit
Ryanar has quit
boxk has quit
Ryanar joined the channel
pokEarl joined the channel
mmalone joined the channel
adsworth joined the channel
moldy
empedokles78: generally, yes
Dratone
empedokles78: Generally speaking yes, you'll only do that on the first push. -u means "set-upstream" i.e. what remote repository / branch you are subscribed to when you do a git pull
zamro has quit
jas02 has quit
neilus joined the channel
hamub has quit
hamub joined the channel
rpkilby has quit
rpkilby joined the channel
the_rat joined the channel
gwhigs has quit
I'm running into a bit of an issue with file uploads in django. I've declared a model with a FileField (Used ImageField earlier but when that failed I tried to experiment) and I can't get it to actually save. Code snippets are available on https://dpaste.de/ekO4 . Both the admin portal and my normal view returns a "This field can't be blank". It is required but I do actually post a file. My form encoding is correct and when I do a print(request
.FILES) I do see the file getting posted.. but for some reason the django form thinks it doesn't get posted. Anybody have any ideas? I'm at my wits end here :-(
moldy
i'd usually recommend a workflow where you almost never do this, though :)
artkay has quit
Dratone
well - its usefull when importing code to a new repo
I hate it that I can't figure out what the f i'm doing wrong lol. Every hypothesis I think of turns out not to be the problem :-/ But my file uploading still isn't working.
morenoh149
cest la vie
Dratone
I've verified that it is posted correctly and request.FILES has the file in it, but my form validation still throws an error and I can't figure out why :-)
moldy
Dratone: can you show us the template?
fission6
why is 1.10.3 not on pypy?
Dratone
template, sure hang on (Though - the admin does the exact same thing btw)
hang on - trying to find out what exactly it was lol
Oh.. my.. damn lol.. Apparently.. when you specify default='' in the filefield.. it stops working
renlo has quit
stickperson has quit
No idea why.. but that was apparently the issue. Thanks for playing rubber ducky ;-)
jfisk87 joined the channel
LADataJunkie joined the channel
moldy
hm, interesting
ubuntu_aze has quit
i wonder why
illmatix joined the channel
Dratone
Yeah.. I'm trying to find the corresponding code but.. nothing jumps out just yet
empedokles78
Dratone, thx.
moldy, sorry I was away, I can't quite follow. I am the single programmer. :)
well "hobbyist".
moldy
empedokles78: i do this even if i am the single programmer, at least most of the time :)
doesn't hurt to acquire good habits. but, ymmv.
Dratone
Hmm. it is a useful workflow for a lot of things but.. I work on a couple projects where that actually isn't a good idea unfortunatly. For instance, I work with some friends of mine on UE4 projects and blueprints and things like that are all stored binary.. so conflict resolution is very difficult. So in that setting we always worked just on the master branch because otherwise merging would be quite.. impossible lol
moldy
always going through a pull request gives your CI a chance to catch errors *before* they go into master, which is nice even if you're working alone
Dratone
That I do agree with hehe :-)
rpkilby joined the channel
royendgel has quit
moldy
Dratone: shouldn't the merge be trivial unless the file has changed on master, too? or is there some problem i am not seeing?
empedokles78
what does "git fetch --all"? -don't get the difference among origin and upstream. I only have gitlab.
rodolfojcj joined the channel
Dratone
lets say you have 3 branches. Master, feature1, feature2. Both feature branches are based of of master branch on commit 5. I make changes to file a and person 2 does to.. I can merge my changes easily enough into master but the second merge.. not so much