Skip to content

Instantly share code, notes, and snippets.

@PirosB3
Created April 9, 2014 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PirosB3/10256842 to your computer and use it in GitHub Desktop.
Save PirosB3/10256842 to your computer and use it in GitHub Desktop.
[1:58pm] verne.freenode.net: [freenode-info] channel trolls and no channel staff around to help? please check with freenode support: http://freenode.net/faq.shtml#gettinghelp
[1:59pm] vovanbo left the chat room. (Remote host closed the connection)
[2:01pm] jMyles left the chat room. (Ping timeout: 255 seconds)
[2:07pm] dlogs left the chat room. (Remote host closed the connection)
[2:07pm] dlogs joined the chat room.
[2:10pm] echos left the chat room. (Ping timeout: 265 seconds)
[2:11pm] echos joined the chat room.
[2:15pm] jMyles joined the chat room.
[2:18pm] vovanbo joined the chat room.
[2:20pm] jMyles left the chat room. (Ping timeout: 240 seconds)
[2:22pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[2:26pm] mlavin joined the chat room.
[2:35pm] jMyles joined the chat room.
[2:38pm] jMyles left the chat room. (Max SendQ exceeded)
[2:39pm] calvinx joined the chat room.
[2:39pm] vovanbo joined the chat room.
[2:44pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[2:53pm] calvinx left the chat room. (Ping timeout: 255 seconds)
[2:59pm] the_drow left the chat room. (Ping timeout: 245 seconds)
[3:01pm] vovanbo joined the chat room.
[3:01pm] kmtracey joined the chat room.
[3:01pm] jMyles joined the chat room.
[3:06pm] vovanbo left the chat room. (Ping timeout: 255 seconds)
[3:07pm] dlogs left the chat room. (Remote host closed the connection)
[3:07pm] dlogs joined the chat room.
[3:09pm] jMyles left the chat room. (Ping timeout: 240 seconds)
[3:22pm] jMyles joined the chat room.
[3:22pm] vovanbo joined the chat room.
[3:26pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[3:27pm] jMyles left the chat room. (Ping timeout: 240 seconds)
[3:41pm] jMyles joined the chat room.
[3:43pm] vovanbo joined the chat room.
[3:43pm] jMyles left the chat room. (Max SendQ exceeded)
[3:46pm] jMyles joined the chat room.
[3:48pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[3:50pm] jMyles left the chat room. (Max SendQ exceeded)
[3:51pm] jMyles joined the chat room.
[4:01pm] jMyles left the chat room. (Ping timeout: 255 seconds)
[4:02pm] jMyles joined the chat room.
[4:03pm] edbaffei left the chat room. (Ping timeout: 240 seconds)
[4:03pm] edbaffei joined the chat room.
[4:03pm] You left the chat by being disconnected from the server.
[4:31pm] You reconnected to the server.
[4:31pm] You rejoined the room.
[4:38pm] [Arfrever] left the chat room. (Ping timeout: 245 seconds)
[4:40pm] edbaffei left the chat room. (Ping timeout: 268 seconds)
[4:43pm] timograham left the chat room. (Read error: Operation timed out)
[4:47pm] timograham joined the chat room.
[4:47pm] vovanbo joined the chat room.
[4:48pm] edbaffei joined the chat room.
[4:49pm] maroloccio left the chat room. (Quit: WeeChat 0.4.3)
[4:51pm] mlavin left the chat room. (Quit: Leaving.)
[4:52pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[4:52pm] mlavin joined the chat room.
[4:53pm] jMyles joined the chat room.
[4:57pm] jMyles left the chat room. (Ping timeout: 252 seconds)
[5:01pm] dfunckt joined the chat room.
[5:05pm] edbaffei_ joined the chat room.
[5:06pm] edbaffei left the chat room. (Ping timeout: 252 seconds)
[5:06pm] edbaffei_ is now known as edbaffei.
[5:07pm] dlogs left the chat room. (Remote host closed the connection)
[5:07pm] dlogs joined the chat room.
[5:07pm] shaib left the chat room. (Quit: Leaving.)
[5:08pm] vovanbo joined the chat room.
[5:10pm] jMyles joined the chat room.
[5:13pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[5:15pm] jMyles left the chat room. (Ping timeout: 268 seconds)
[5:30pm] vovanbo joined the chat room.
[5:32pm] FinalAngel left the chat room. (Read error: Operation timed out)
[5:33pm] jMyles joined the chat room.
[5:34pm] vovanbo left the chat room. (Ping timeout: 252 seconds)
[5:44pm] jMyles left the chat room. (Ping timeout: 240 seconds)
[5:47pm] jMyles joined the chat room.
[5:49pm] edbaffei left the chat room. (Ping timeout: 240 seconds)
[5:51pm] edbaffei joined the chat room.
[5:51pm] vovanbo joined the chat room.
[5:51pm] jMyles left the chat room. (Max SendQ exceeded)
[5:52pm] jMyles joined the chat room.
[5:53pm] untitaker left the chat room. (Ping timeout: 268 seconds)
[5:55pm] edbaffei_ joined the chat room.
[5:55pm] edbaffei left the chat room. (Ping timeout: 255 seconds)
[5:55pm] edbaffei_ is now known as edbaffei.
[5:56pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[5:58pm] untitaker joined the chat room.
[5:59pm] bmispelon left the chat room. (Quit: Leaving)
[6:06pm] roymiloh joined the chat room.
[6:07pm] dlogs left the chat room. (Remote host closed the connection)
[6:07pm] dlogs joined the chat room.
[6:07pm] voidus left the chat room. (Quit: Leaving.)
[6:10pm] timograham left the chat room. (Ping timeout: 268 seconds)
[6:12pm] vovanbo joined the chat room.
[6:17pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[6:26pm] timograham joined the chat room.
[6:34pm] vovanbo joined the chat room.
[6:38pm] vovanbo left the chat room. (Ping timeout: 252 seconds)
[6:55pm] ustunozgur joined the chat room.
[6:55pm] vovanbo joined the chat room.
[6:58pm] merica joined the chat room.
[6:59pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[7:07pm] dlogs left the chat room. (Remote host closed the connection)
[7:07pm] dlogs joined the chat room.
[7:10pm] dfunckt left the chat room.
[7:11pm] ArcTanSusan joined the chat room.
[7:16pm] vovanbo joined the chat room.
[7:20pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[7:34pm] edbaffei left the chat room. (Ping timeout: 240 seconds)
[7:34pm] edbaffei_ joined the chat room.
[7:34pm] edbaffei_ left the chat room. (Remote host closed the connection)
[7:35pm] dfunckt joined the chat room.
[7:36pm] edbaffei joined the chat room.
[7:37pm] vovanbo joined the chat room.
[7:40pm] edbaffei left the chat room. (Ping timeout: 240 seconds)
[7:42pm] vovanbo left the chat room. (Ping timeout: 268 seconds)
[7:43pm] You left the chat by being disconnected from the server.
[01:11am] You reconnected to the server.
[01:59am] You left the chat by being disconnected from the server.
[3:51pm] You reconnected to the server.
[3:51pm] You rejoined the room.
[3:54pm] ustunozgur left the chat room. (Ping timeout: 240 seconds)
[4:07pm] dlogs left the chat room. (Remote host closed the connection)
[4:17pm] seanbrant joined the chat room.
[4:17pm] seanbrant left the chat room. (Client Quit)
[4:17pm] seanbrant joined the chat room.
[5:01pm] jax joined the chat room.
[5:07pm] dlogs joined the chat room.
[5:15pm] seanbrant left the chat room. (Quit: seanbrant)
[5:17pm] seanbrant joined the chat room.
[5:18pm] edbaffei left the chat room. (Ping timeout: 252 seconds)
[5:38pm] dfunckt left the chat room.
[5:46pm] bmispelon left the chat room. (Ping timeout: 268 seconds)
[5:53pm] untitaker left the chat room. (Ping timeout: 268 seconds)
[5:58pm] untitaker joined the chat room.
[6:00pm] bmispelon joined the chat room.
[6:00pm] bmispelon was granted voice by ChanServ.
[6:07pm] dlogs left the chat room. (Remote host closed the connection)
[6:07pm] dlogs joined the chat room.
[6:10pm] loic84 joined the chat room.
[6:13pm] ojii left the chat room. (Quit: Leaving)
[6:16pm] jax left the chat room. (Quit: Leaving.)
[6:28pm] void left the chat room. (Quit: Leaving.)
[6:33pm] seanbrant left the chat room. (Quit: seanbrant)
[6:35pm] seanbrant joined the chat room.
[6:46pm] vbabiy left the chat room. (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
[6:46pm] Siecje joined the chat room.
[6:52pm] hairy joined the chat room.
[6:54pm] brodie joined the chat room.
[6:56pm] brodie left the chat room. (Client Quit)
[6:59pm] seanbrant left the chat room. (Quit: seanbrant)
[7:01pm] seanbrant joined the chat room.
[7:07pm] dlogs left the chat room. (Remote host closed the connection)
[7:07pm] dlogs joined the chat room.
[7:10pm] vbabiy joined the chat room.
[7:12pm] vbabiy left the chat room. (Client Quit)
[7:19pm] vbabiy joined the chat room.
[7:20pm] vbabiy left the chat room. (Client Quit)
[7:30pm] kmtracey joined the chat room.
[7:31pm] voidus joined the chat room.
[7:31pm] voidus is now known as void.
[7:31pm] ArcTanSusan joined the chat room.
[7:35pm] vbabiy joined the chat room.
[7:36pm] vbabiy left the chat room. (Client Quit)
[7:39pm] vbabiy joined the chat room.
[7:39pm] vbabiy left the chat room. (Client Quit)
[7:42pm] dfunckt joined the chat room.
[7:42pm] hairy left the chat room. (Quit: hairy)
[7:47pm] ArcTanSusan left the chat room. (Quit: ArcTanSusan)
[7:50pm] You left the chat by being disconnected from the server.
[9:00pm] You reconnected to the server.
[9:00pm] You rejoined the room.
[9:01pm] You left the chat by being disconnected from the server.
[9:02pm] You reconnected to the server.
[9:02pm] You rejoined the room.
[9:02pm] orwell.freenode.net: [freenode-info] channel trolls and no channel staff around to help? please check with freenode support: http://freenode.net/faq.shtml#gettinghelp
[9:07pm] dlogs left the chat room. (Remote host closed the connection)
[9:07pm] dlogs joined the chat room.
[9:19pm] vovanbo joined the chat room.
[9:19pm] dfunckt joined the chat room.
[9:23pm] vovanbo left the chat room. (Ping timeout: 240 seconds)
[9:28pm] ArcTanSusan joined the chat room.
[9:29pm] kmtracey: squashmigrations is not documented?
[9:30pm] You left the chat by being disconnected from the server.
[11:35am] You reconnected to the server.
[11:35am] You rejoined the room.
[11:35am] anubhav9042: loic84: I think contrib.messages and contrib.foormtools was all. Did you came up with anything else?
[11:36am] loic84: anubhav9042: the ones in contrib.formstools came up when I used selenium.
[11:36am] loic84: but there could be more... maybe in GIS or whatever.
[11:36am] anubhav9042: loic84: Ok I am trying to fix that now.
[11:37am] anubhav9042: loic84: I did git grep 'urls =' and it shows only formtools thing only now. So I think that would be all
[11:37am] anubhav9042: loic84: What do you say? I have corrected contrib.messages
[11:39am] loic84: yeah grep 'urls =' should catch all.
[11:40am] anubhav9042: loic84: Yep
[11:59am] You left the chat by being disconnected from the server.
[12:47pm] You reconnected to the server.
[12:47pm] You rejoined the room.
[12:47pm] akaariai: fullname = CompositeField(fname, lname, primary_key=True) that is,
[12:47pm] akaariai: then foreign key is defined as class OtherModel: mymodel = ForeignKey(MyModel)
[12:48pm] loic84: I can see how that'd be a mess to integrate with migrations
[12:48pm] akaariai: this generates composite mymodel_id, and also lname and fname fields for OtherModel
[12:48pm] akaariai: loic84: yes, fix that and you can have it
[12:50pm] loic84: hehe there's a bit of a long weekend coming soon, I may give it a try.
[12:50pm] akaariai: I wonder if migrations could just concentrate on managing the concrete fields and forget about the composite fields?
[12:50pm] loic84: is the branch roughly up to date?
[12:50pm] akaariai: loic84: you might want to ask koniiiik to update it
[12:50pm] akaariai: though I guess there hasn't been *that* much of large changes lately
[12:50pm] loic84: hum that's a tough decision, we should ask andrewgodwin about it.
[12:51pm] loic84: it mostly comes down to the fake ORM I would say
[12:51pm] akaariai: it probably doesn't work that easily
[12:51pm] hairy joined the chat room.
[12:51pm] loic84: that we can't detect the primary key without the CompositeField doesn't help either.
[12:51pm] akaariai: also, the composite fields might need some SQL themselves (unique and primary key)
[12:52pm] loic84: exactly
[12:52pm] andrewgodwin: well luckily I'm awake as I've got an early flight to Pycon
[12:52pm] loic84: and if you want to make custom indexes out of virtualfields... they wouldn't be that useful without migrations to run them.
[12:53pm] andrewgodwin: my perspective has always been that migrations should be more focused on concrete fields, but I would suspect you need the virtual ones too for the "fake orm"
[12:54pm] akaariai: unless we decide to skip fake orm support for composite fields
[12:54pm] akaariai: but I don't think that is a good solution
[12:54pm] loic84: there's still the issue of indexes, which is pretty major.
[12:55pm] voidus joined the chat room.
[12:55pm] void left the chat room. (Disconnected by services)
[12:55pm] EvilDMP left the chat room. (Quit: EvilDMP)
[12:56pm] akaariai: we need pk and unique support for the first iteration, other custom indexes is separate feature
[12:57pm] loic84: so, unique on a composite field would act like a unique_together?
[12:57pm] akaariai: loic84: yes, that is my understanding
[1:00pm] loic84: it's really tricky because we can't half support deconstruction on VirtualField.
[1:00pm] loic84: unless we have restriction like you can't use args (only kwargs) with your VirtualField...
[1:03pm] loic84: but as soon as things are deconstructed, they'll be caught by the auto detector when things change.
[1:04pm] rasca joined the chat room.
[1:04pm] loic84: andrewgodwin: unless we revisit having whitelisting/blacklisting of fields for the autodetector.
[1:05pm] loic84: whitelisting/blacklisting of fields *arguments* rather
[1:07pm] dlogs left the chat room. (Remote host closed the connection)
[1:07pm] dlogs joined the chat room.
[1:08pm] EvilDMP joined the chat room.
[1:08pm] EvilDMP was granted voice by ChanServ.
[1:10pm] andrewgodwin: loic84: what arguments would you be blacklisting?
[1:10pm] andrewgodwin: the field references inside the composite field should trigger a change if they mutate
[1:11pm] andrewgodwin: if there's e.g. an index built from that field
[1:11pm] PirosB3: Hi all
[1:11pm] PirosB3: Could someone give me a hand with a PR comment?
[1:12pm] PirosB3: on https://github.com/django/django/pull/2428/files I don’t understand the comment fields -> options
[1:12pm] PirosB3: would anyone mind explaining? thanks
[1:12pm] timograham: I meant just change the word
[1:12pm] PirosB3: oh hi timograham
[1:13pm] PirosB3: aaaaah!
[1:13pm] PirosB3: okay
[1:13pm] PirosB3: thanks
[1:13pm] dfunckt joined the chat room.
[1:13pm] PirosB3: also, timograham I added a comment on the list.count
[1:14pm] PirosB3: tbh, I think there is a better syntax than mine
[1:14pm] PirosB3: mine is quite ugly, but I still have not found a valid alternative
[1:14pm] loic84: andrewgodwin: for CompositeField yeah, but for VirtualField for instance.
[1:14pm] timograham: did you get my comment about just making this a check though? I don't really see how the deprecation warning is different/useful if we have that.
[1:15pm] andrewgodwin: loic84: right, but if you're including fields at all because they need to be in the ORM you need to include *any* field update
[1:15pm] PirosB3: when you say a check through, does that mean we make the changes transparently to the user?
[1:16pm] andrewgodwin: unless there's some argument to virtualfield that changes in-place without the user doing anything?
[1:16pm] timograham: I mean adding one of these to detect the situation https://docs.djangoproject.com/en/dev/ref/checks/#models
[1:16pm] loic84: I don't think so, anyway this can be controller with custom deconstruct.
[1:17pm] apollo13: andrewgodwin: lmao
[1:17pm] apollo13: re that email
[1:17pm] andrewgodwin: apollo13: yeah, it always happened at a time when I completely forgot about it
[1:18pm] PirosB3: oh okay timograham, should I create one?
[1:18pm] loic84: I'm not really sold on blacklisting/whitelisting anyway, it really seems an all or nothing situation.
[1:18pm] PirosB3: or is there one that we can reuse?
[1:19pm] PirosB3: I cannot find one that would suit the situation
[1:19pm] timograham: Yea, I imagine you could probably copy an existing one as a starting place and modify it to your needs.
[1:19pm] jax joined the chat room.
[1:20pm] timograham: I guess it would actually be a "field" check, not model
[1:20pm] PirosB3: yep
[1:20pm] PirosB3: so I’ll create a new field error and replace the DeprecationWarning with that
[1:20pm] PirosB3: cheers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment