is there a way of looking at a generated migration and see exactly what change and caused the migration to be generated? i mean adding and deleting fields is kinda obvious, but filed alterations aint :/
Gagaro
You can look at the migration file directly
in the migrations folder
kakulukia
ist just listing the changed field, but not the the reason why its changed
kezabelle1
if you changed anything about the field, that's why it changed :)
kakulukia
id like to be able to see the old version
kezabelle1
open the previous migration that touched it.
kakulukia
id like to do what someone else did to the filed and did not generate migrations for
*see not do
Gagaro
You have a field which generates a migration but you aren't the one who changed this field ?
Are you using git ?
adgral is now known as rhaps0dy
kakulukia
great idea!
kaakku joined the channel
i was just hoping to be able to use the migration itself since django also has to know what changed and still is not inside any migration
Gagaro
I don't know if you can do it with juste the migration commands
kakulukia
thx anyway
Gagaro
git blame and blame your colleague for not doing the migration then :D
ciurkut joined the channel
kakulukia
will do! :D
nordica joined the channel
isthisreallife joined the channel
isthisreallife
how in django admin can i display only posts that have active=True ?
i need to display subpages that flag is set to 'genaral'
mattmcc ^
ciurkut
erm, if my search gets 14req/s on postgres 45 on elastic with haystack, and 150 on pure html am i doing something wrong or is it okay? xd
FunkyBob
ciurkut: you're comparing incomparable things?
schinckel
isthisreallife: You can use methods, but you need to do extra work.
Also, remember that the admin isn't your site.
ciurkut
FunkyBob, always... :c
jtiai
isthisreallife: Filter, as name suggest can only filter things.
Lipp joined the channel
isthisreallife
schinckel, please show me how to do it? some code samples?
schinckel
(But obviously there needs to be something in the database to filter upon)
FunkyBob
ciurkut: how can you "search" in "pure html"?
ciurkut
im just asking that if my serv on my dev machine spits out 150req/s html and 44 elastic, is that kinda okay or should i expect something more like 100req/s
jtiai
isthisreallife: So you can add rules to filter but you can't just return totally new queryset.