admin

Symfony - admin - FormFilter - is empty - i18n

Hi, we are in admin generator in filters in field. What is the most clearest way to translate is empty label under form fields? I've solve it by own setWidgets and setWidgets in BaseFormFilterDoctrine witch extend the parent methods by translating that is empty( empty_label ). setWidgets - translate all *empty_label*s in form filter(...

django - save a resize copy of image on upload (using admin site)

Hi - I'm building a site for a client that needs to support image uploads (an artist) through the admin interface. Since most of the images are pretty high-res, I wanted to create thumb copies of the image to display on the gallery page after the upload. The upload works great with the forms.ImageFile element, but I was looking for som...

How can I add the user/author email to the row of the "edit posts" panel ?

I want to have the user/author email available in the "edit posts" panel. Currrently the "edit posts" panel has the author name but no email and the "user" panel has author and email but doesn't have the brief post description. Any ideas? ...

How to implement custom admin actions in non-custom-models in Django?

I'd like to build a custom admin action into a model defined by Django. Let's say I wanted to add the action "Activate selected User(s)" on django.contrib.auth.models.User in the Django admin interface. What would be the clean and proper way to accomplish this? I had a look at the documentation but it's just about implementing admin act...

Limit foreign key choices in select in an inline form in admin

Edited :-) Hopefully a bit clearer now. The logic is of the model is: A Building has many Rooms A Room may be inside another Room (a closet, for instance--ForeignKey on 'self') A Room can only in inside of another Room in the same building (this is the tricky part) Here's the code I have: #spaces/models.py from django.db i...

Is there an API to GlassFish Admin Console?

Hi, we just inherited the development of a web application that uses GlassFish. The setup instructions we got have all these manual steps to setup connection pool, JDBC resource and JMS. I'm wondering if there is an API that could allow us to do all this work automatically (e.g. with a script)? Thanks! ...

App Engine Authentication Error

I have an app hosted by google app engine, and I am having trouble with authentication. When I login using my admin account and try to access the admin page or members pages, I just get a blank screen. I can login, and the members only menu shows when I login, but I just can't see any data from the members pages. I'm not really sure ...

How to give my C# app administrative rights? manifest file

Hi. I'm having some trouble with my C# app that uses win32_networkingadapterconfig. The problem is that I can't use the altering functions in win32_networkingadapterconfig when I use the app on a user that dont have admin rights. I have tried to "run as administrator", but no luck. And I have tried to make a manifestfile with this conte...

Magento product images new option

Hey guys, how do i add one more option to product image list? like Exclude & Remove checkboxes ...

Django: Messages Framework

So I have installed the new Messages Framework. The documentation mentions using a css class called "messages" in the template. But I can't seem to find any such css class in any of the files in the trunk. What I want to do is, in the Django Admin, have a red cross, instead of a green v, when displaying an error. http://docs.djangoproj...

django admin actions on all the filtered objects

Admin actions can act on the selected objects in the list page. Is it possible to act on all the filtered objects? For example if the admin search for Product names that start with "T-shirt" which results with 400 products and want to increase the price of all of them by 10%. If the admin can only modify a single page of result at a tim...

using properties in Django Admin

I have a model with field defined as p = models.DecimalField(max_digits=12, decimal_places=6) But the decimal_places=6 is only for internal accuracy. I only want 2 decimal_places to show up in the admin fields. So I thought perhaps I could do something with properties. But properties don't show up as fields in the Admin interface. E.g...

SQL Server 2005 DBA Learning Resource

So I have some experience with Microsoft Access, building database apps for people, vba, etc for different folks at work....different divisions. And I have actually learned a lot in that realm...however, now the need for SQL Server has arrived, and I have never really ventured into that realm...so let the questions begin: how vastly di...

Django - update a model won't delete the old FileField

Hello! I am implementing an application with django, which has a model with a FileField: class Slideshow(models.Model): name = models.CharField(max_length=30,unique=True) thumbnail = models.FileField(max_length=1000,upload_to="images/app/slideshows/thumbnails") and I have an admin backend where django manages the models. I jus...

Django Admin site TemplateSyntaxError at /admin/: name not defined

I have an issue where, when I log in to the Django admin site, I get a template syntax error in /Library/Python/2.6/site-packages/django/template/debug.py in render_node, line 81. I can't find out how to solve this as it is part of Django, I didn't write the code and I have no idea how it works. This did work fine up until a few days a...

Java admin rights (UAC)

My application consists of a server a and client interface. I want the client to be able to request the server to write a registry key. Now i did my research on libraries for java that do that and i found a few. The problem lies with admin rights. When i run a simple java program to read from the registry i get an error that informs me t...

How to add a not null column to postgresql table without doubling its size on disk

Is there a way to add a not null type column to a Postgresql table without doubling its size on disk? If for instance I have a table with some columns defined, and I want to add a column I'd do the following: alter table my_table add new_column int update table my_table set new_column = 0 alter table my_table alter column new_colum...

most secure way to password protect admin files/folders?

what is the most secure way to password protect admin files/folders? im on apache/php ...

How do I add a custom column with a hyperlink in the django admin interface?

I have a django admin interface and in the model listing I want a custom column that will be a hyperlink using one of the fields values. Basically one of the models' fields is a url and i'd like the column to have that URL in a clickable hyperlink. This link will need to have additional URL prepended to it as its a relative path in the...

How can I let a user select from a dropdown OR provide their own value in the Django admin?

I'm using a third-party app (Satchmo) and I want to change a text field to a dropdown with some preset options plus a text field where the user can fill in their own value. I know how to mess with the admin model to change the field to use a dropdown of presets, but not how to preserve the users ability to specify the value themselves. ...