Gen1us2k1: So provide them with reports that show them how many orders have been made
Gen1us2k1
I can't quit.
nickjohnson: Fair enough. Maybe I will stick to your suggestion. Thanks for help :)
NBhosting joined the channel
rahulkmr has quit
zkanda has quit
NBhosting
is a foreign key acting difrant in postgresql then sql
FunkyBob
NBhosting: huh?
NBhosting
in sql they appear for example as form item in my admin, in postgresql not
its shows in pgadmin, but not in the admin for
form.
FunkyBob
erm... exactly what do you mean by "sql"?
NBhosting
mysql
FunkyBob
ah
raijin joined the channel
best to say "mysql" so we know you're talking about that toy
NBhosting
k\
but did u get what i ment? with sql i get an list select field in admin
with postgresql i dont get that
FunkyBob
foreign key is a field whose value must be a current value in the primary key column of a designated table
stop saying "sql" when you mean mysql!
NBhosting
sorry habbit :D
rahulkmr joined the channel
FunkyBob
fucking stupid habit
NBhosting
:D
FunkyBob
incredibly misleading
dev11 joined the channel
twoface read it as "rabbit"
NBhosting
lol
FunkyBob
where do you get this magic list?
dev11
please link me some good beginners article for django, anything text/video is fine paid or free, thanks alot!
FunkyBob
if you're talking about django's admin... it treats all fkeys the same
dev11: well, there's the tutorial in the official docs
dev11
ok thanks
NBhosting
dev11 lookup Mike Hibbert on yuoutube
dev11
thanks !
kolaman joined the channel
NBhosting
and check the google python videos
airtonix
NBhosting: i wouldn't use mysql as the baseline to compare things with... best practice is to use a database that doesn't magically throw away data.
Nanor
I'm trying to do search_fields = ['get_speakers'] where get_speakers is a function to get a comma separated string of speakers which is a many to many field. It tells me there's a field error and if I do search_fields = ['speakers'] I get the error "Related Field has invalid lookup: icontains"
NBhosting: but the good thing is that most of your mysql sql knowledge will make transferring to postgresql easy
Narsilou joined the channel
muzik
So im looking to insert some text into a pdf file and show it as a webpage or pdf file. Any suggestions on the easiest way? I have been adding template code to the pdf and converting it to html with pdf2htmlEX, but the results are very hit and miss with font and size :(
NBhosting
yeah , its all going well so far
airtonix
NBhosting: that video seems to be doing a good job of "tl;dr" it for me
Nanor
I'm trying to do search_fields = ['get_speakers'] where get_speakers is a function to get a comma separated string of speakers which is a many to many field. It tells me there's a field error and if I do search_fields = ['speakers'] I get the error "Related Field has invalid lookup: icontains"
redShadow joined the channel
crunch-choco joined the channel
Any idea how I can search a many to many field?
medvind has quit
sokmar
hmm, are there any builtin ways to detect that code is being run as part of a test? at middleware or view level for instance
FunkyBob
Nanor: you search a field on the target model of the m2m
kezabelle
sokmar: arguably, the code shouldn't care.
sokmar
kezabelle: need to emulate an external service in my api for accessing it
good idea to follow conventions, like ProperCaps for class names
viktornagy
hi, we've a test that fails when we run it together with another totally separate test method, but passes if we run our test only. The other method is in tests/models.py, this one is in tests/views.py. They have nothing in common at all. The view test fails, but there is a response object that seems to be OK, but our view code is never called. Did anyone have similar issues already? We're stuck with this for hours now!
FunkyBob
so, the m2m field is called "speakers"... so ... speakers__name
tapia joined the channel
iulians joined the channel
tapia
Hi. I need a log formatter to write the date as a timestamp
FunkyBob
tapia: ok...?
tapia: can't figure it out from the Python logging docs?
rafaqueque joined the channel
iivvoo
viktornagy, it happened to me when the test modified some global (cache) data that wasn't cleared between tests
tapia
I've seen the datefmt uses the strftime format, and (afaik) it doesn't include a timestamp
iivvoo
something similar may happen at the database level if your data isn't properly reset between tests