Anyway, most people have no clue what office suite opened -- they just care that they got their useful data in a format they can mess with prior to printing or easily convert into a presentation slide.
mattmcc
Now if only Apple would support ODF. :P (I have a lot of Pages-using coworkers)
Derailed has quit
abisson has quit
anth0ny joined the channel
zxq9
Just install LO behind their backs -- its what I've had our clients' IT people do, and none of the users noticed. Which begs the question: why did they pay JPY 30k+ per seat for the MS Office licenses? They don't use it *at all* because their only use case involves data that I export for them to ODF... GAHH!
FSCV has quit
I should have been more "consultantly" and charged them that on top... per seat.
rend has quit
gremly has quit
gremly joined the channel
ben_nicoll joined the channel
Derailed joined the channel
zacharypch has quit
karansag has quit
willer_ has quit
karansag joined the channel
yassine has quit
m0rpho has quit
gabrielfalcao has quit
demet8 joined the channel
houman has left the channel
demet8
when I use the project command from django-admin.py startproject poll_app via virtualenv, why am I getting this file structure: poll_app/poll_app/_init_.py?
seanbrant joined the channel
Leeds joined the channel
abyss42 has quit
Raisins joined the channel
mattmcc
demet8: The project structure changed in 1.4. If you were to run manage.py startapp, it would then create apps like poll_app/other_app. Next to the project directory, instead of inside it.
matthearn777 joined the channel
Raisins has quit
demet8
@mattmcc I just found that on the django site. Thank you for your help.
md4d joined the channel
tyfighter has quit
mattmakai joined the channel
zacharypch joined the channel
md4d has quit
hex` has quit
superflit has quit
Nrsimha joined the channel
phildini_ joined the channel
phantomcircuit has quit
jcarbaug_ joined the channel
phildini_ has quit
hyperair has quit
jcarbaugh has quit
phildini has quit
mattmakai has quit
phantomcircuit joined the channel
rend joined the channel
ticketbot has quit
recur has quit
karansag has quit
ticketbot joined the channel
markusca has quit
Gorroth has quit
demet8 has left the channel
Gorroth joined the channel
xeor joined the channel
abisson joined the channel
ionelmc has quit
hwrd|work has quit
EyePulp has quit
kristallpirat has quit
kristallpirat joined the channel
EyePulp joined the channel
abisson
Is there a quick way to have a filter to a FK within a ModelForm? For example, in my "Production Lines" Add Form (ModelForm) I have a FK to a "Plants" model. I need to constraint the available plants… do I always have to overwrite the field in the init?
abisson: limit_choices_to works if the condition isn't dynamic. Otherwise, yes, you'd need to do it in the form constructor.
mindlace has quit
abisson
mattmcc: what do you mean by dynamic?
koniiiik joined the channel
jargon- has quit
mattmcc
abisson: Say the list of available plants depended on which user was filling out the form, or depended on some other condition that the user can specify in the form.
If you simply have a Plant.active field, then limit_choices_to would work.
CrypticS_ joined the channel
abisson
arggg yeah… the available plants will depend on which user is using the application
therefore… it won't work right?
mattmcc
Right, so pass the user to the form constructor and filter the field's queryset from there.
abisson: If you want to customize the label like that, subclass ModelChoiceField and define label_from_instance(self, obj).
cramm joined the channel
Back2Basics has quit
igormorgado has quit
abisson
mattmcc: wait… for what?
intr1nsic joined the channel
mattmcc
The manager field.
the_rat has quit
ReekenX|AFK has quit
quangquach has quit
gremly joined the channel
abisson
mmm let me try to find an example
xchu joined the channel
anth0ny has quit
jpk has quit
mattmcc: frisking SO is down lol
mattmcc
There's really not much to it. Subclass the field, give it that method which receives a model instance (A Manager instance in your case) and return the string you want to use for the choice field's label.