Hi

I'm pretty new to Django and am trying to use doc strings to document my 
model in the admin interface. All works fine except for a model that uses 
inheritance.

My Abstract base model is:

class Account(models.Model):
"""
blah blah
"""
account_id = models.CharField(max_length=10, unique=True)
name = models.CharField(max_length=50)
balance = models.DecimalField(max_digits=20, decimal_places=2)

I then extend the base class:

class BankAccount(Account):
    """
    Stores an instance of a Bank Account.
    
    """

    bank_name = models.CharField(max_length=50)
    sort_code = models.CharField(max_length=8)

The problem is that the admin doc shows the docs for the abstract base 
class but not the BankAccount. The admin DOES show the field definition of 
the BankAccount just not the docstrings. Am I doing something wrong?

many thanks for any help.

Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/uasr0bOw0PoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to