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

  • SEARCH
  • Home
  • 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 1022435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:27:56+00:00 2026-05-16T11:27:56+00:00

my verbose_name of a foreignkeyfield isn’t printed in my forms. (I create the modelforms

  • 0

my verbose_name of a foreignkeyfield isn’t printed in my forms. (I create the modelforms via modelformset_factory

model

class MOrders(models.Model):
    amount = models.IntegerField('Bestellmenge', null=True, blank=True)
    order_date = models.DateField('Bestelldatum')
    id = models.AutoField(primary_key=True)
    m_product_types = models.ForeignKey(MProductTypes)
    class Meta:
        db_table = u'm_orders'
        verbose_name = 'Bestellung'
        verbose_name_plural = 'Bestellungen'
        unique_together = (('id','order_date','m_product_types'))
    def __unicode__(self):
        return "%s" % (self.order_date)

verbose_name of m_product_types is set. B

class MProductTypes(models.Model):
    id = models.AutoField(primary_key=True)
    stock = models.IntegerField('Bestand',null=True, blank=True)
    m_products = models.ForeignKey(MProducts, verbose_name='Produkt')
    m_sizes = models.ForeignKey(MSizes, verbose_name='Groesse')
    m_colors = models.ForeignKey(MColors, verbose_name='Farbe')
    class Meta:
        verbose_name = u'Produktart'
        verbose_name_plural = 'Produktarten'
        db_table = u'm_product_types'

Am I doing something wrong? I’m using the latest Django version from trunk.

  • 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-16T11:27:57+00:00Added an answer on May 16, 2026 at 11:27 am
    m_product_types = models.ForeignKey(MProductTypes, 
                                        verbose_name = u'Produktart',
                                       )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a model.py like this: class EventTypeCategory(models.Model): name = models.CharField(max_length=50, verbose_name=Name) user =
How to change my_stock verbose_name ? models.py: class Book(models.Model): name = models.CharField(u"Нэр", max_length=200) stock
fragment of models.py class Hardware_type(models.Model): type = models.CharField(blank = False, max_length = 50, verbose_name=Type)
How to prevent Django from auto-capitalizing of the verbose_name in models? E.g: class TestModel(models.Model):
I have a model like this: class Entity(models.Model): entity_name = models.CharField(max_length=100) entity_id = models.CharField(max_length=30,
I have this sample model working with the admin class Author(models.Model): name = models.CharField(_('Text
In my project I am using django-mptt for categories. My model: class Category(models.model): name
I have Django model that looks like this: class Categories(models.Model): Model for storing the
I have 2 models: class Team(models.Model): Team model for creating a basic team. image
So I have a few Django models that look like this: class City(models.Model): name

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.