Show Django AdminSite fields depending on the current user

Django, Programming, Python No Comments »

Introduction

The auto-created AdminSite in Django is a nifty feature for creating an administrative view of your model classes. Somehow it is not perfect, even if you want to customized it. To guide you to my problem and solution you've to know, that I implemented the SoftDelete behaviour for model classes as described by Greg Allard. It simply adds a 'deleted' field to each model marking it as deleted if its deleted in the admin site (or in some application) but never really gets deleted from the database. So in the admin site there is this field 'deleted' displayed, if you have configured it.

The Problem

My project has 2 different 'usergroups', the editors and the superusers. Superusers should see the 'deleted' fields, the others not. Unfortunatly that is not possible out of the box with Django.

Read the rest of this entry »

Tags: , , , , , , , ,

Simple MySQL Backup at Google Code

Backup, Infrastructure, PHP, Programming, Scripting Languages 1 Comment »

A while ago I wrote an article about a script I created to backup databases. Since then I had to make little changes and decided to put it to Google code as Open-Source-Project and released the new version 0.1.1 with some minor changes.

If you're interested in the script, head over to its project page and check the appropriate pages like the Changelog and the Installation and Requirements page. Feel free to download and comment  it.

Tags: , , , , ,

zoe.vc is back

Common No Comments »

Finally we made it to the new server. Unfortunatly all special characters are broken, but I'll fix that later. And hopefully I'll have same time to post new content :)

Tags:

Probably Site Downtime

Common No Comments »

Howdy!

As I'm moving the domain to a new server these days it could be possible that zoe.vc isn't reachable for some hours or even days. So don't be confused - everything will be alright after the movement is finished. Comments are disabled meanwhile.

Thanks for your understanding!

Tags:
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Anmelden