how do i convert a queryset to a list so i can do .pop()
jordanmessina joined the channel
something like list(queryset)
and then list.pop()
picoguy has quit
pztrick
cetko: i believe you want itertools.chain
rolleiflex joined the channel
pydanny joined the channel
yassine joined the channel
audreyr has quit
skaflem joined the channel
derek_c
cetko: itertools.chain is the way to go
Amitash
what is the difference between {{ var }} and {% var %}?
skaflem has left the channel
derek_c
{{}} expects an expression, like a variable
Amitash: {%%} is used for things like {% if var < 0 then %}
Amitash: sorry there isn't "then" lol
kmc
hm with pipeline, my STATIC_ROOT gets both the original and minified files
Amitash
derek_c: Ah got it.. Kinda like JSP tags.. Thanks
kmc
i'd like it to have only the latter so I can easily deploy just those
is there an easy way?
AbeEstrada joined the channel
rlrosa joined the channel
amirouche has quit
amirouche joined the channel
repsaj has quit
ustunozgur has quit
cauethenorio has quit
randomdrake has quit
ToApolytoXaos has quit
caleb_ has quit
derek_c has quit
hexus0 has quit
derek_c joined the channel
xcbt joined the channel
RobOakes joined the channel
rogi joined the channel
caleb_ joined the channel
PeregrinePDX joined the channel
AbeEstrada has left the channel
j_syk joined the channel
PeregrinePDX
So some people from typethink are here today at my office.
gawry has quit
apollo13
good for you
nomulous has quit
gawry joined the channel
deadguy1969 joined the channel
deadguy1969 has left the channel
cramm has quit
EyePulp has quit
greaver joined the channel
greaver has left the channel
derek_c has quit
keimlink joined the channel
radez is now known as radez_g0n3
md4d joined the channel
pztrick has quit
caleb_ has quit
amccloud joined the channel
caleb_ joined the channel
ojh joined the channel
md4d has quit
Shariq has quit
novation joined the channel
bvlaar has quit
EyePulp joined the channel
bvlaar joined the channel
BlueDreams joined the channel
novation
I am trying to get my <Select> to be rendered as a RadioSelect but can't figure out how todo it in my custom Model Field. class QuestionField(models.CharField):
I am suspect because I use the choices= attribute in my model definition something is override the formfield in my model field class.
just can't wrap my head around it :(
JrSysAdmin joined the channel
I want todo it in the modelfield definition because I want all the QuestionFields in my project to be rendered as a RadioSelect!
Mahjongg has quit
dirn has quit
willvw has quit
pembo13 has quit
JrSysAdmin
Hi, I'm using the login view (from django.contrib.auth.views import login, logout) and when the credentials are invalid it just loads the login form with no message.
I tried {% for error in errors %} {{ error }} {% endfor %} and no luck
chrismed joined the channel
jvdm joined the channel
jvdm has quit
jvdm joined the channel
polishnorbi has quit
RedXIII has quit
m0n5t3r joined the channel
polishnorbi joined the channel
starsinmypockets
How can I create a foreign key relationship to a model in a different module?
josuebrunel joined the channel
AmineZyad
import the other model and do the relationship as normal
see the docs
tobias1 has quit
tobias1 joined the channel
skeet70 has quit
jordanmessina has quit
starsinmypockets
:)
arietis has quit
gawry has quit
Hmm I get an error to the effect that I'm trying to create a relation to a model which has either not been installed or is abstract. (after importing)
bvlaar has quit
tbaxter
starsinmypockets: keep reading the docs. They tell how to handle that.