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 6796195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:26:17+00:00 2026-05-26T18:26:17+00:00

I have a global question and a question about a specific problem in a

  • 0

I have a global question and a question about a specific problem in a context of signals. In order to solve what the issues, signal dispatcher is most useful, overkill?

I have an issue of saving multiple modelforms with foreign key. I assumed that this a signal can solve it. But I can’t get how, because I do not understand the scope of the signals.

model

class CV(models.Model):
    title = models.CharField(max_length=255)
    # And other fields...

class HigherEducation(models.Model):
    cv = models.ForeignKey(CV, blank=True, null=True)
    institution = models.CharField(max_length=255)
    # And other fields...

class ProfessionalExperience(models.Model):
    cv = models.ForeignKey(CV, blank=True, null=True)
    company_name = models.CharField(max_length=255)
    # And other fields...

All the forms are modelforms inherited from models above. The last two are used in modelformsets. All of this forms are displayed in one html form in template.

forms

class CVForm(forms.ModelForm):
    class Meta:
        # All the stuff

class EducationForm(forms.ModelForm):
    class Meta:
        # All the stuff

class ExperienceForm(forms.ModelForm):
    class Meta:
        # All the stuff

Education = modelformset_factory(HigherEducation, 
                                 form=EducationForm,
                                 max_num=2)
Experience = modelformset_factory(ProfessionalExperience,
                                  form=ExperienceForm,
                                  max_num=1)

In the view I need to save the EducationForm and ExperienceForm with cv field with the assigned ID of current CV model.

Can I solve this problem by signals?

It was hard to formulate the problem, so if anything is not clear, I will edit the question.

  • 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-26T18:26:17+00:00Added an answer on May 26, 2026 at 6:26 pm

    Signals are simply hooks that allow you to fire pieces of code after a particular action occurs, i.e. ‘when an instance/row of a model Foo is saved, run the function baz()‘. Signals have two components : the actual signal (the action that has been carried out – a save/delete etc.) and the receiving function (what to do when that action occurs).

    Django has many signals built in (for example, that is fired after or before a save operation, a signal that is fired after or before a delete operation) but you can also create your own signals. If you had a signup process in your website, you could write a signal that fires when a user creates an account and then link that signal to a function that sends the user an email

    I don’t think your situation is related to using signals. It sounds to me like you want to create a single form (composed of 3 smaller forms) where the latter 2 forms (Education & Experience) rely on the previous form (CV) being saved first?

    In this case the issue is that you can’t fill out the 2nd and 3rd form without having filled out the 1st form first (as no CV will exist yet) so to achieve this you might be best creating a form wizard with 3 steps; first save the CV, then using the CV show the 2nd and 3rd steps (which at this stage the CV will already be saved)

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

Sidebar

Related Questions

I have a question about global.asax that I don't really understand. My scenario is
I have a question about variable declaration in Objective-C in case of global variable
I have question about global variable in Objective-C. I have two .m files :
I have a question about global in TCL. In one tcl file tclone.tcl, I
I have a question about my haproxy config: #--------------------------------------------------------------------- # Global settings #--------------------------------------------------------------------- global
Per a great answer from another question I have begun mounting global resources (css/js/images)
I have a question about setting the style attributes for a data cell in
In my project I have about 10 DataContext. My question is whether I have
Good morning everyone, I have a question about J2EE framework. since ASP.net 3.5 mvc
I have a question about inner-workings of Python sub-interpreter initialization (from Python/C API) and

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.