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_operation') >

Inserting further fields of a foreignkey object into change list view

2014-10-21 Thread Vittorio
getting this result? Ciao Vittorio -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this gro

Problems connecting to an oracle legacy db

2014-06-04 Thread Vittorio
does not exist Exception Location: /usr/local/lib/python2.7/dist-packages/django/db/backends/oracle/base.py in execute, line 815 Why is that? I can't figure out what I made it wrong in the definition of the database in settings.py or in the db_table definition in models.py Please help Vittorio

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 orde

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

2014-03-04 Thread Vittorio
age) 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 "Django users" group. To unsubscribe from this gr

Freezing records in a model after a set time

2014-02-23 Thread Vittorio
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 -- Yo

Unable to save records in a table

2013-10-31 Thread Vittorio
k, for the last rec of the loop I have >>> rec.id_ordine >>> rec.codarticolo >>> rec.numerounita 25 >>> BUT if I issue: >>> f=MovimentoOrdineDettaglio.objects.all() >>> f [] No records at all in the table! Nothing anomalous is

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 = 'path/to/th

Unable to load a modified tabular.html

2013-10-24 Thread Vittorio
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 "Django users" group. To unsubscribe from this group and stop receiving emails fro

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

2013-10-09 Thread Vittorio
tom", "sue"]: readonly_fields = ['title','authors','publisher'] fields=(('title'),('authors', 'publisher')).. . admin.site.register(Book,BookOption) How can I do it? Ciao Vittorio -- You received this message because you are subscribed to the Google

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

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

Modifying a field in another model

2013-04-22 Thread Vittorio
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. To unsub

Modifying a field in another model

2013-04-21 Thread Vittorio
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. To unsub

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 <tevans...@googlemail.com> wrote: > On Thu, Apr 4, 2013 at 11:35 AM, Russell Keith-Magee > <russ..

Problem with intermediary table from legacy database

2013-04-04 Thread Vittorio
.) 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 # Create your models here. class Autore(models.Model): nome

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

Defining a different name for the key field in ForeignKey

2013-02-21 Thread Vittorio
90, unique=True, db_column='Codice') ... ... How can I specify in categoria_id of class Articoli that the key field to refer to is idCategoria of Categorie? Ciao Vittorio -- You received this message because you are subscribed to

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

2013-02-20 Thread Vittorio
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','/home/vittorio/miosito/home'] +