Can't submit picture through generic view form

2012-05-19 Thread Michael Ackerman
I have a generic view: class create_ticket(CreateView): model = ticket form_class = ticket_form template_name = "create_ticket.html" success_url = "/tickets/thanks/" and a form: class ticket_form(ModelForm): class Meta: model = ticket fields = ('title','descri

Re: syncdb not creating columns in postgresql database

2012-05-15 Thread Michael Ackerman
Thanks for all the advice, I appreciate it. On Tue, May 15, 2012 at 3:22 AM, doniyor wrote: > sorry for bad advice.. i thought i could work,, > > Am Dienstag, 15. Mai 2012 08:52:35 UTC+2 schrieb lawgon: > >> On Mon, 2012-05-14 at 09:06 -0700, doniyor wrote: >> > delete your app from INSTALLED_AP

syncdb not creating columns in postgresql database

2012-05-14 Thread Michael Ackerman
Every time I edit a model and run syncdb, I get a database error telling me that the column doesn't exist. *#Error Message:* Environment: Request Method: GET Request URL: http://127.0.0.1:8000/tickets/2/ Django Version: 1.4 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'd

Re: UpdateView Creates a new object

2012-05-14 Thread Michael Ackerman
was > generated by. > This will allow you to use a single template for both create and view view > while they keep their respective urls. > As a side note, you should use the url template tag rather than hardcode > urls ;) > > Regards, > Xavier Ordoquy, > Linovia. > &

Re: UpdateView Creates a new object

2012-05-13 Thread Michael Ackerman
oking for a way to see if I can combine the 2 views into one. On Sun, May 13, 2012 at 5:40 AM, Xavier Ordoquy wrote: > Hi, > > What does you form html tag looks like ? Sounds like you're sending the > updateview form to the createview. > > Regards, > Xavier Ordoquy, >