Ticket #10614: models.diff

File models.diff, 602 bytes (added by rduffield, 16 years ago)
  • docs/topics/db/models.txt

     
    10221022proxy model by setting the :attr:`~django.db.models.Options.proxy` attribute to of the ``Meta`` class to ``True``.
    10231023
    10241024For example, suppose you want to add a method to the standard ``User`` model
    1025 that will make be used in your templates. You can do it like this::
     1025that will be used in your templates. You can do it like this::
    10261026
    10271027    from django.contrib.auth.models import User
    10281028
Back to Top