Changes between Initial Version and Version 2 of Ticket #21637
- Timestamp:
- Dec 18, 2013, 12:11:07 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21637
- Property Owner changed from to
- Property Status new → assigned
-
Ticket #21637 – Description
initial v2 1 1 When we define any model, then we can create its object as obj=ModelClassName(). But when we define custom fields we just cannot do the same always. If we are using to_python() method, then it shows up error. 2 2 3 4 3 If a define my model as: 5 4 {{{ 6 5 from django.db import models 7 6 … … 19 18 name = models.CharField(max_length=80, blank=True, null=True) 20 19 ph = models.CharField(max_length=80, blank=True, null=True) 21 20 }}} 22 21 23 22 Then it is not possible to define an object of Person type without giving parameters.