- Language: en
25 results for id in version 5.0
-
How to use sessions
- … id" )) except ( ValueError , TypeError ): account_id = None obj . account_id = account_id return obj If you are migrating …
-
Formsets
- … id="id_form-0-title"></div> <div><label …
-
Creating forms from models
- … id" id="id_form-0-id"></div> Note modelformset …
-
Making queries
- … id == other_entry . id If a model’s primary key isn’t called id , no problem …
-
Performing raw SQL queries
- … id': None, 'id': 54360982}, {'parent_id': None, 'id': 54360880}] >>> cursor …
-
Models
- … id = models . AutoField ( primary_key = True ) ... class Book ( models . Model ): book_id = models . AutoField ( primary …
-
URL dispatcher
- … id>/history/" , views . history ), path ( "<page_slug>-<page_id …
-
Using the Django authentication system
- … id ): user = get_object_or_404 ( User , pk = user_id ) # any permission check will cache …
-
Working with forms
- … id = " {{ field.auto_id }} _helptext" > {{ field.help_text | safe }} </ p > {% endif %} </ div > {% endfor …
-
System check framework
- … id ( self ): message = "(sites.E101) The SITE_ID setting must be an integer." with …