Re: Inserting further fields of a foreignkey object into change list view

2014-10-21 Thread Vittorio
Great, it works! Thanks a lot Collin Ciao from Rome Vittorio Il giorno 21/ott/2014, alle ore 18:00, Collin Anderson ha scritto: > Hi Vittorio, > > Would this work? > > class OperationAdmin(admin.ModelAdmin): > list_display = ('patient','date_of_oper

Inserting further fields of a foreignkey object into change list view

2014-10-21 Thread Vittorio
ity, zipcode of that patient. As you can see these pieces of info are fields of the table used as ForeignKey (see model Patients). What is the quickest and neat way of getting this result? Ciao Vittorio -- You received this message because you are subscribed to the Google Groups "Dj

Problems connecting to an oracle legacy db

2014-06-04 Thread Vittorio
tart my application via python manage.py runserver I get the following error in the browser at the very beginning DatabaseError at /noematica/ ORA-00942: table or view does not exist Request Method: GET Request URL: http://10.20.0.1:7600/noematica/ Django Version: 1.6.2 Exception Type: DatabaseError

Re: django 1.6.1 raw_id_fields open a 'change' popup instead of 'select' popup

2014-03-05 Thread Vittorio
Il giorno 05/mar/2014, alle ore 03:54, Camilo Torres ha scritto: > On Tuesday, March 4, 2014 4:47:58 AM UTC-4:30, Vittorio wrote: > In an admin form I input all data for a specific invoice (client, date of > issue, number of invoice) and, by means of inlines, the ordered items. In

django 1.6.1 raw_id_fields open a 'change' popup instead of 'select' popup

2014-03-04 Thread Vittorio
I tested - works great showing a 'select' page) is called by: http://localhost:8000/warehouse/warehouse/items/?e=1 (which shows a change page) Why is that and what should I do? Thanks a lot Vittorio -- You received this message because you are subscribed to the Google Groups "D

Freezing records in a model after a set time

2014-02-23 Thread Vittorio
ith higher permissions should be enabled to modify or delete the record after that time has elapsed Before starting to code a python script to obtain that I would like to know if there is any Github or other "out-of-the-box"django package doing something like that. Thanks a lot Vittorio -

Unable to save records in a table

2013-10-31 Thread Vittorio
icle 8016629001115 does not exist-load now Ord.4 per EINAUDI LUIGI ABBASSALINGUA IN LEGNO DOC N/ST CF.100 25 >>> --- Everything seems ok for instance, just to doublecheck, for the last rec of the loop I have >>> rec.id_ordine >>> rec.codartico

Re: Unable to load a modified tabular.html

2013-10-24 Thread Vittorio
It helped indeed. Thank you very much! Vittorio Il giorno 24/ott/2013, alle ore 19:00, Pantelis Petridis ha scritto: > You don't have to create any custom view. Just set the template in your > inline model > > class MyInline(admin.TabularInline): > template = '

Unable to load a modified tabular.html

2013-10-24 Thread Vittorio
s admin/edit_inline/tabular.html instead of mytabular.html as debug_toolbar says. I tried also to put mytabular.html under $MYPROJECT/templates/admin/edit_inline/ to no avail. Please help. Ciao Vittorio -- You received this message because you are subscribed to the Google Groups "Djan

admin.py: putting "if condition" in ModelAdmin according to username

2013-10-09 Thread Vittorio
quot;tom", "sue"]: readonly_fields = ['title','authors','publisher'] fields=(('title'),('authors', 'publisher')).. . admin.site.register(Book,BookOption) How can I do it? Ciao Vittorio -- Y

Template unable to show media files in production

2013-09-19 Thread vittorio
*Context: Ubuntu linux server 12, Apache 2.2 server, django 1.5.3* * * My project, /home/victor/magazantea is dealt with by admin and it works fine in the development environment (/manage.py runserver 192.168.1.19:8000). I built a view which gets data from the following fields from model "Artic

Re: Geodjango on Windows issue

2013-05-27 Thread Angel Vittorio Lopez Robles
Hi Danny, I'm having the same issue, I tried with virtual environments and didn't work, did you find something to fix it? appreciate it. On Tuesday, August 7, 2012 11:23:55 AM UTC-6, Danny Im wrote: > > Hello all, > > I'm hoping to get some assistance on this. > > Issue: > A user can upload a sh

Modifying a field in another model

2013-04-22 Thread Vittorio
last-know_address' that modifies Person.address in one shot (without having to open Person). Is that possible and how? An example would be highly appreciated. Ciao from Rome Vittorio -- You received this message because you are subscribed to the Google Groups "Django users" group

Modifying a field in another model

2013-04-21 Thread Vittorio
last-know_address' that modifies Person.address in one shot (without having to open Person). Is that possible and how? An example would be highly appreciated. Ciao from Rome Vittorio -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Problem with intermediary table from legacy database

2013-04-04 Thread Vittorio
Thanks a lot Russ Magee, now it works. Ciao Vittorio Il giorno 04/apr/2013, alle ore 14:24, Russell Keith-Magee ha scritto: > > > On Thu, Apr 4, 2013 at 6:48 PM, Tom Evans wrote: > On Thu, Apr 4, 2013 at 11:35 AM, Russell Keith-Magee > wrote: > > > > > &g

Problem with intermediary table from legacy database

2013-04-04 Thread Vittorio
he Libri model I see the autore field horizontally filtered.) How can I solve this problem having to necessarily use this legacy db and its tables which are fed by a Filemaker procedure too? Thanks from Rome Vittorio models.py from django.db import models #

manytomany field and intermediary table from a legacy database

2013-03-27 Thread Vittorio
ith django too. In this legacy db the "intermediary join table" already exists but with a different name and with different name fields. How can I tell Django to use that table without creating a new one? An example would be very useful. Bye from Rome Vittorio -- You received this mes

Defining a different name for the key field in ForeignKey

2013-02-21 Thread Vittorio
categoria_id = models.ForeignKey(Categorie) codice = models.CharField(max_length=90, unique=True, db_column='Codice') ... ... How can I specify in categoria_id of class Articoli that the key field to refer to is idCatego

Cannot find ../django/contrib/admin/media

2013-02-20 Thread Vittorio
out indeed! I modified my apache2 httpd.conf in order to run the same app adding: VirtualHost *:8000> ServerAdmin webmaster@localhost SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['/home/vittorio