Edit mode lets one form view update an existing object instead of creating a new one. The view receives the object's ID, fetches the owned record, and uses it to prepopulate the form. Add mode uses the same view without an ID, keeping similar behavior in one place. section 7.2.5
A Django-style implementation follows this request flow:
- Use separate add and edit routes that call the same view; the edit route supplies an integer object ID. section 7.2.5
RiffMates seeking ads
A `seeking_ad(request, ad_id=0)` view treats `ad_id=0` as Add mode and another ID as Edit mode. The edit URL is `edit_seeking_ad/<int:ad_id>/`, and an Edit link appears only for the ad owner.
