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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:43:36+00:00 2026-05-25T13:43:36+00:00

I have 2 simple models; a JobInfo model and a Contact model. class JobInfo(models.Model):

  • 0

I have 2 simple models; a “JobInfo” model and a “Contact” model.

class JobInfo(models.Model):
    client = models.CharField(max_length=50, choices=CLIENT_CHOICES)
    job_number = models.CharField(max_length=30, unique=True, blank=True, null=True)
    page_type = models.CharField(max_length=50, choices=PT_CHOICES)
    contact = models.CharField(max_length=50, choices=CONTACT_CHOICES?)

    def __unicode__ (self):
    return self.job_number

    class Admin: 
        pass

class Contact(models.Model):
    name = models.CharField(max_length=64, unique=False, blank=True, null=True)
    position = models.CharField(max_length=50, choices=CLIENT_CHOICES)
    phone = models.CharField(max_length=15, unique=False, blank=True, null=True)
    fax = models.CharField(max_length=15, unique=False, blank=True, null=True)
    email = models.EmailField()

    def __unicode__ (self):
    return self.name

    class Admin: 
        pass

Can my “Contact” objects (from Contact Model) be choices for the contact field in the “JobInfo” model? I’d like to be able to select contacts in my JobInfo form and have those Contact properties available to display in the same template.

  • 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-25T13:43:37+00:00Added an answer on May 25, 2026 at 1:43 pm

    You want to create a relationship, right?

    So the contact field on your JobInfo model should look like this:

    contact = models.ForeignKey('Contact')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this simple Blog model: class Blog(models.Model): title = models.CharField(_('title'), max_length=60, blank=True, null=True)
I have this simple Post model: class Post(models.Model): title = models.CharField(_('title'), max_length=60, blank=True, null=True)
I have a simple model: class MediaLink(models.Model): title = models.CharField(max_length=200) subtitle = models.TextField(max_length=2000, unique=False,
I have a simple model like this one: class Artist(models.Model): surname = models.CharField(max_length=200) name
if I have two simple models: class Tag(models.Model): name = models.CharField(max_length=100) class Post(models.Model): title
Assume I have such simple model: class Foo(models.Model): name = models.CharField(max_length=25) b_date = models.DateField()
I have a simple category model: class Category(models.Model): name = models.CharField(max_length=200) slug = models.SlugField()
I have a simple model which looks like this: class Group(models.Model): name = models.CharField(max_length
I have a simple class: class BlogPost(models.Model): title = models.CharField(max_length=150) ... timestamp = models.DateTimeField()
Say I have a simple forum model: class User(models.Model): username = models.CharField(max_length=25) ... class

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.