Skip to content

djangodocs

Django 4.1
  • 6.1 current
  • 6.0
  • 5.2 LTS
  • 5.1 unsupported
  • 5.0 unsupported
  • 4.2 unsupported
  • 4.1 unsupported
  • 4.0 unsupported
  • 3.2 unsupported
  • 3.1 unsupported
  • 3.0 unsupported
  • 2.2 unsupported
  • 2.1 unsupported
  • 2.0 unsupported
  • 1.11 unsupported
  • 1.10 unsupported
Polski
  • English
  • 简体中文
  • Français
  • 日本語
  • Bahasa Indonesia
  • Italiano
  • Português (Brasil)
  • 한국어
  • Español
  • Ελληνικά
  • Polski
Documentation contents
  • Dokumentacja Django
  • Pierwsze kroki
  • Używanie Django
    • Jak zainstalować Django
    • Modele i bazy danych
      • Modele
      • Wykonywanie zapytań
      • Aggregation
      • Search
      • Managers
      • Performing raw SQL queries
      • Database transactions
      • Multiple databases
      • Tablespaces
      • Database access optimization
      • Database instrumentation
      • Examples of model relationship API usage
        • Relacje wiele-do-wielu
        • Relacje wiele-do-jednego
        • Relacje jeden-do-jednego
    • Obsługa żądań HTTP
    • Praca z formularzami
    • Szablony
    • Class-based views
    • Migrations
    • Managing files
    • Testing in Django
    • User authentication in Django
    • Django’s cache framework
    • Conditional View Processing
    • Cryptographic signing
    • Sending email
    • Internacjonalizacja i lokalizacja
    • Logging
    • Stronicowanie
    • Security in Django
    • Wydajność i optymalizacja
    • Serializing Django objects
    • Django settings
    • Signals
    • Framework sprawdzeń systemu
    • External packages
    • Asynchronous support
  • Przewodniki „Jak to zrobić”
  • Często zadawane pytania odnośnie Django
  • API Reference
  • Meta-dokumentacja i rozmaitości
  • Glosariusz
  • Informacje o wydaniach
  • Dokumentacja wewnętrzna Django
Django 4.1 is no longer supported. It receives no security fixes. Use it for reference only. Latest release
Polish translation. Untranslated passages appear in English. 14.9% Help translate
  1. Django 4.1
  2. Używanie Django
  3. Modele i bazy danych

Examples of model relationship API usageLink to this heading#

  • Relacje wiele-do-wielu
  • Relacje wiele-do-jednego
  • Relacje jeden-do-jednego
View as Markdown Edit this page on GitHub Official version
PreviousDatabase instrumentation NextRelacje wiele-do-wielu

An unofficial rendering of the Django documentation.

Not affiliated with or endorsed by the Django Software Foundation. The documentation is copyright © Django Software Foundation and individual contributors, and is used under the BSD 3-Clause licence. “Django” is a trademark of the Django Software Foundation.

This translation is the work of the Django i18n community, not of this site. Read the official documentation at docs.djangoproject.com.

👋 Jason Cartwright