I've created model class "Record", with a few CharFields (job_number, client_job_number, project_name), an IntegerField and a DateTimeField.
It utilizes the ModelForm class. Its view is defined as "def record_add(request):", which returns "render_to_response('record_add.html'). The .html is a child template that extends the css formatted base. I'd like it to return a view of the newly created record, with fields populated with the appropriate data. Also, on the blank form, it should be possible to submit either a job number or project name and return a display of the corresponding record. All of these views will utilize the same data so I would think there would be no need to create additional models. I just know how to write the additional view functions. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---