I don't see why wouldn't your model's .save() work, maybe we'd need to see
the model code, but I know you probably want to read this:
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/
once you've implemented a ModelForm, you'd pretty much would just do
form = RoomForm(request.POST)
Hi Im some how new to django . I write a view to handle ajax request
but I find out that save() method dose not save model instance in to the
database
here is my code
def add_room(request):
context={}
status=''
if request.is_ajax:
if request.POST:
2 matches
Mail list logo