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
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
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
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.
>
&
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,
>
5 matches
Mail list logo