Loving django still, and now I'm at the point where I'm running into a
limit on my understanding on how to map the Model CRUD functions (non-
admin style) to a URL pattern.  For example:

Model1:
  fielda
  fieldb

Model2:
  key=Foreignkey(model1)
  fielda
  fieldb

Model3:
  key=foriengkey(model2)
  fielda
  fieldb

So, i'm looking for some help to allow me to CRUD each of these
models, and I've come up with a few:

http://.../model1/add       - calls a view to add a new model1 object
to the DB.
http://.../model1/edit/#    - calls a view to update the model1 ID = #

http://.../model2/add/#    - calls a view to add a new model2, with a
foreign key model1 of #
http://.../model2/edit/#    - calls a view to edit a model2 of ID #.

I guess I continue the same pattern for all sub-models?  so model3
would be:

http://.../model3/add/#    - calls a view to add a new model3, with
foreign key model2 of #
http://.../model3/edit/#    - calls a view to edit a model3 of ID#

It seems simple enough, but wanted to get everyones feedback on
anything I'm missing, or is it just this simple?

Thanks

John


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to