# Unable to access some fields

**URL:** <https://forum.djangoproject.com/t/unable-to-access-some-fields/26820>\
**Category:** Forms & APIs\
**Created:** [January 10, 2024, 8:13pm UTC](https://forum.djangoproject.com/t/unable-to-access-some-fields/26820 "2024-01-10T20:13:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krimn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/krimn/32/18303_2.png) [@Krimn](https://forum.djangoproject.com/u/Krimn)\
**Post date:** [January 10, 2024, 8:13pm UTC](https://forum.djangoproject.com/t/unable-to-access-some-fields/26820/1 "2024-01-10T20:13:54Z")

</div>

Hello i have a question  
I have two models

```auto
class Names(models.Model):

    name= models.CharField(("Name"), max_length=50)
    status= models.CharField(("Person Status"), max_length=50)

```

```auto
class GeneralForm(models.Model):
    user= models.ForeignKey(Names, verbose_name=("User"), on_delete=models.CASCADE)
... other fields

```

and have modelForm for GeneralForm in form.py:

```auto
class GeneralModelForm(forms.ModelForm):
    class Meta:
        model = GeneralForm
        fields = " __all__"

```

When i use GeneralModelForm it prints out everything as expected, i see Names model’s name field as select option in template but i also want to see Names model’s status field as select option in template. How can i do that?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [January 11, 2024, 2:18am UTC](https://forum.djangoproject.com/t/unable-to-access-some-fields/26820/2 "2024-01-11T02:18:18Z")

</div>

> [@Krimn](#):
>
> i see Names model’s name field as select option in template

You’re misinterpreting what you’re seeing.

What you’re seeing in the select for `user` is the output of the ` __str__ ` function for the `Names` model. The select itself is to alter the `user` field - changing _which_ instance of `Names` that `GeneralForm` is referring to.

If you want a form to edit `Names`, then you need to create a ModelForm for `Names`, and use in your view.
