mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
Merged to trunk 1024. Typo fixes to changelist stuff - thanks Bruce Mitchener.
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
commit
ff6d527f3e
@ -1,7 +1,8 @@
|
||||
from django.core.template.decorators import simple_tag, inclusion_tag
|
||||
|
||||
from django.contrib.admin.views.main import MAX_SHOW_ALL_ALLOWED, DEFAULT_RESULTS_PER_PAGE, ALL_VAR, \
|
||||
ORDER_VAR, ORDER_TYPE_VAR, PAGE_VAR , SEARCH_VAR , IS_POPUP_VAR, EMPTY_CHANGELIST_VALUE
|
||||
ORDER_VAR, ORDER_TYPE_VAR, PAGE_VAR , SEARCH_VAR , IS_POPUP_VAR, EMPTY_CHANGELIST_VALUE, \
|
||||
MONTHS
|
||||
|
||||
from django.core import meta
|
||||
from django.utils.text import capfirst
|
||||
|
@ -621,6 +621,14 @@ the relationship should work. All are optional:
|
||||
vertically).
|
||||
|
||||
``limit_choices_to`` See the description under ``ForeignKey`` above.
|
||||
|
||||
``singular`` The singular name of the field. Use to name the ``get_*``
|
||||
methods: in the example above, Django gives the ``Pizza``
|
||||
objects a ``get_topping_list()`` method, where ``topping``
|
||||
is the default ``singular`` value derived from the lowercase
|
||||
version of the class being linked to. Use the singular
|
||||
parameter to change this, which is if you want one model to
|
||||
have multiple ``ManyToMany`` relationships to another model.
|
||||
======================= ============================================================
|
||||
|
||||
One-to-one relationships
|
||||
|
Loading…
x
Reference in New Issue
Block a user