The-Kid: what's wrong is that I didn't read the docuemntation prior to coming here and asking a question.
FunkyBob
toothe: it's a bad habit we'll break you of eventually :)
The-Kid
toothe: It happens to everyone. In some cases you may have read over it but missed something as well.
FunkyBob: But what if I don't want to look for the answers to my questions
FunkyBob
ooh... is that a koan?
aardbolreiziger has quit
toothe
this is a nice page though, I mustsay.
The-Kid
FunkyBob: I don't follow
toothe
btw, it took me like 4-5 weeks to even understand WTF was going on with django.
The-Kid
toothe: Django is a large project and can take a bit of time to get the hang of
DLSteve joined the channel
FunkyBob
toothe: I've given you the "the core of django" cycle description, right?
The-Kid
toothe: Good choice though on moving to class based views.
FunkyBob
The-Kid: you know they're slower, right? :)
ironfroggy joined the channel
The-Kid
FunkyBob: I'm aware
FunkyBob
:P
garrypolley joined the channel
The-Kid
FunkyBob: Creating an object is more work then a function
FunkyBob
than
also there's all the method calls, creating call contexts, etc.
The-Kid
FunkyBob: I find them easier to read then function views though and that makes up for the extra overhead
FunkyBob
_than_
then is a temporal term, like when
than is a comparative term
The-Kid
FunkyBob: Thank you. I'm going to continue to mess that up btw. I will try not to though.
My spelling is not very good :(
FunkyBob
well, I hope the then/when mnemonic will help
The-Kid
FunkyBob: It likely will. I hope it does
garrypolley has quit
FunkyBob
I should write a collection of them that I've learned/acquired/developed
The-Kid
you should
ironfroggy joined the channel
I'm good with the you, your, you're
Debnet has quit
and a lot
FunkyBob
your, you're, yore ?
their, there, they're?
just remember 're is abbreviation of "are"
then there's "here / there"
The-Kid
I'm aware
ejb has quit
FunkyBob: so about that page of tricks ?
FunkyBob
heh
mingrammer joined the channel
lolidunno
I have an item list model with a price field that gets incremented and decremented when users add or remove items
what's the best way to handle scoundrels that try to overflow the max digits
I was thinking of just setting the field to the max value if it exceeds the max value in an overridden save method
Cavedude has quit
okimoyo
If I'm using a model form to display a ForeignKey to a list of user accounts, is there a way to filter for accounts in some group?
mingrammer has quit
Cavedude joined the channel
FunkyBob
lolidunno: your DBMS should limit that ... so do the operation in a transaction and catch the error
okimoyo: specify the queryset for the field?
okimoyo
FunkyBob: Yes, that would do it....?
lolidunno
ah, so just a try/catch in the view then
haber joined the channel
FunkyBob
okimoyo: if you're not declaring the field explicitly, do it in a custom form __init__ self.fields['myfield'].queryset = ....
The-Kid
I'm thinking about making a django backed html5 game
FunkyBob
ok
okimoyo
FunkyBob: Do you have to call super if you override __init__ like that?
FunkyBob
okimoyo: yes
okimoyo: call it before you do your work
Doerno joined the channel
LiamM joined the channel
Doerno
hi.How should I get the model name in overriden admin change template?
ironfroggy joined the channel
ironfroggy joined the channel
squeaky-clean has quit
akki has quit
brizz
Account.objects.all()[0].postcontent.all()[0].content_index is a Integer field, when trying to modify the value of it, doesnt seem to save (stays 0) is it because of how im accessing the field?
ironfroggy joined the channel
FunkyBob
brizz: wow, what an expensive operation
brizz: how are you accessing the field? what re you doing, _exactly_, when you try to update it?