Skip to content

Instantly share code, notes, and snippets.

mutually_exclusive_options = [auto_now_add, auto_now,
getattr(kwargs, 'default', None)]
if len(filter(None, mutually_exclusive_options)) > 1:
[12:43pm] PirosB3: toy/7class_example4_train.light
[12:44pm] PirosB3: just to let you know iglesiasg this issue has not appeared to me any more
[12:44pm] PirosB3: but still, I should not take the issue out
[12:44pm] PirosB3: till someone else tries it
[12:44pm] PirosB3: I have an open pull request https://github.com/shogun-toolbox/shogun/pull/1954
[12:44pm] iglesiasg: PirosB3, I am going to try and reproduce it
[12:44pm] PirosB3: oh great! that would be amazing
[12:44pm] PirosB3: iglesiasg: you have to pull down my branch
[12:45pm] PirosB3: all instructions are on the PR
[12:45pm] iglesiasg: PirosB3, yeah sure, already did that
[11:20pm] jarshwah joined the chat room.
[11:23pm] timograham: PirosB3: I see it a bit differently I guess. For each class, give me the list of student IDs. Since one class doesn't have any students, we have the None value that corresponds to it. I can't find if the behavior is explicitly tested, but changing it would be backwards incompatible.
[11:24pm] PirosB3: thanks for explaining timograham
[11:24pm] PirosB3: in this particular example, the list is flattened
[11:25pm] PirosB3: if a class doesn't have any students, shouldn't it return an empty list?
[11:26pm] timograham: I suppose you could argue that
[11:27pm] PirosB3: with a None being possible with values_list, it makes developer's lives more difficult, as they need to check when iterating over the list. But I perfectly understand the backwards compatibility issues
[11:29pm] timograham: Yes I see, would be helpful if you could add that to the ticket. We can see what others say (Anssi is likely to have some insight) and whether or not changing it will
from bisect import bisect
from django.utils import six
from django.db.models import signals
from django.db import models
from django.db.models.manager import *
from django.db.models.fields import FieldDoesNotExist
from django.apps import apps
[9:38pm] deens joined the chat room.
[9:39pm] You left the chat by being disconnected from the server.
[9:39pm] You reconnected to the server.
[9:39pm] You rejoined the room.
[9:40pm] ArcTanSusan left the chat room. (Quit: ArcTanSusan)
[9:42pm] deens left the chat room. (Ping timeout: 252 seconds)
[9:49pm] stephenmcd left the chat room. (Quit: Leaving.)
[9:51pm] ArcTanSusan joined the chat room.
[9:56pm] claudep left the chat room.
[10:02pm] deens joined the chat room.
[11:55pm] freakboy3742: (rules of the game)
[11:56pm] freakboy3742: Yeah - I can't easily check format - I'm a mentor, so I've been locked out of the "create proposal' buttons
[11:56pm] freakboy3742: IIRC, it's an in-browser WYSIWYG widget
[11:56pm] apollo13: well plaintext should be safe :þ
[11:56pm] freakboy3742: there might be some markup options
[11:56pm] freakboy3742: Plaintext is always safe
[11:56pm] freakboy3742: Anyway - Docs will do for now
[11:56pm] FunkyBob: freakboy3742: when you've got a sec
[11:57pm] freakboy3742: Just going to have to wrestle with Google's authentication stuff...
[11:57pm] freakboy3742: FunkyBob: You need me for a big thing or a little thing?
[10:57pm] PirosB3: I updated the doc
[10:58pm] freakboy3742: I take it this is your daily "how's my proposal" conversation?
[10:58pm] freakboy3742:
[10:58pm] • FunkyBob makes a note that freakboy3742 is 3 hours behind
[10:58pm] freakboy3742: FunkyBob: I am now. No DST in Perth.
[10:58pm] FunkyBob: you lucky sods
[10:58pm] PirosB3: freakboy3742: I admit having used the work component once
[10:58pm] freakboy3742: Yup. Keep putting it to referendum, and it keeps losing.
[10:58pm] PirosB3: I am guilty, but I think I'm using it the write way
[10:59pm] freakboy3742: PirosB3: Heh…
[10:30pm] PirosB3: hello
[10:36pm] claudep left the chat room.
[10:37pm] jasonamyers joined the chat room.
[10:37pm] jasonamyers left the chat room.
[10:45pm] timograham joined the chat room.
[10:45pm] MarkusH: freakboy3742: may I bug you about swappable models again?
[10:47pm] PirosB3: ahah
[10:47pm] PirosB3: everybody want's freakboy3742 's attention
[10:47pm] PirosB3:
[10:49pm] freakboy3742: PirosB3: Oh, I'm just Mr Popular…
def many_to_many(self):
def get_m2m_with_model(self):
def get_field(self, name, many_to_many=True):
def get_field_by_name(self, name):
def get_all_field_names(self):
def get_all_related_objects(self, local_only=False, include_hidden=False,
def get_all_related_objects_with_model(self, local_only=False, ..)
def get_all_related_many_to_many_objects(self, local_only=False):
def get_all_related_m2m_objects_with_model(self):
def concrete_fields(self):
[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)