FileField binary/text mode

2014-08-23 Thread Martin Tiršel
Hello, today, I wanted to use FileField directly in Python CSV module, but problem was, that CSV module requires the file to be opened in text mode, not binary. So I though that this will be sufficient: obj.my_file_field.file.close() obj.my_file_field.file.open(mode='r') csvreader =

Re: Proposal new Django Admin css style

2014-08-23 Thread Andy Baker
I really like Thiago's new skin and I love the fact it's CSS only. The key thing to remember in any discussion about updating the admin is that there are three levels: 1. CSS/Static only - little to no breakage of 3rd party apps 2. Updated HTML - many apps that overrride admin templates or rely