Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4083994
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:23:01+00:00 2026-05-20T18:23:01+00:00

My view : def SeekDeals(request , reply_id): reply = SeekReply.objects.get(pk = reply_id) obj =

  • 0

My view :

def SeekDeals(request , reply_id):
    reply = SeekReply.objects.get(pk = reply_id)
    obj = SeekDeals (user_provider = reply.person)
    obj.user_seeker = request.user
    obj.seek_id = reply.seek_id
    obj.save()
    # Status - 1, is a flag which conveys that the solution has been found
    # The deal has been done and the seek solution should be taken out of the feed
    reply.seek_id.status = 1;
    reply.seek_id.save()
    replies = SeekReply.objects.filter(seek_id = reply.seek_id)
    for x in replies:
        x.status = 1;
        x.save()
    return HttpResponseRedirect('/seek/dealfixed')

Where SeekDeals is Table in my database with fields as :

  user_seeker
  user_provider
  seek_id

The traceback –

        # Apply view middleware
        for middleware_method in self._view_middleware:
            response = middleware_method(request, callback, callback_args, callback_kwargs)
            if response:
                return response
        try:
            response = callback(request, *callback_args, **callback_kwargs) ...
        except Exception, e:
            # If the view raised an exception, run it through exception
            # middleware, and if the exception middleware returns a
            # response, use that. Otherwise, reraise the exception.
            for middleware_method in self._exception_middleware:response = middleware_method(request, e)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:23:02+00:00Added an answer on May 20, 2026 at 6:23 pm

    Calling your view “SeekDeals” has shadowed your model called “SeekDeals”. Rename one of them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my view: def rsvp_list(request, id, template=rsvp/rsvp_list.html): rsvp = RSVP.objects.get(id=id) return render_to_response(template, { 'attendees':
I have the following code in a view: def controller_details(request, object_id): controller = Controller.objects.get(pk=object_id)
In my view: def delete_payment(request, id): thePayment = Payment.objects.filter(id=id) thePayment.delete() return HttpResponseRedirect('/invoices/open/') In my
The view: def GRID_ServerDropDownSearch(request): if 'r' in request.GET and request.GET['r']: r = request.GET['r'] servers
I want to test this view: def register(request): handle user registration code variable is
I tried to read a file in a view like this: def foo(request): f
Model: http://dpaste.com/96349/ View: def game_list(request): return render_to_response('games/game_list.html', { 'object_list': GameList.objects.published.all().order_by('position')}) Template: AttributeError at /games/
when i change the homepage view: def home(request): return render_to_response('homepage.html') to def home(request): return
In django/contrib/auth/views.py there is the definition of the logout view : def logout(request, next_page=None,
Let's say I have a view: def pony_view(request, arg1, arg2): ... Make ponies, etc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.