Changes between Initial Version and Version 2 of Ticket #21637


Ignore:
Timestamp:
Dec 18, 2013, 12:11:07 PM (11 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21637

    • Property Owner changed from nobody to ANUBHAV JOSHI
    • Property Status newassigned
  • Ticket #21637 – Description

    initial v2  
    11When 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.
    22
    3 
    43If a define my model as:
    5 
     4{{{
    65from django.db import models
    76
     
    1918    name = models.CharField(max_length=80, blank=True, null=True)
    2019    ph = models.CharField(max_length=80, blank=True, null=True)
    21 
     20}}}
    2221
    2322Then it is not possible to define an object of Person type without giving parameters.
Back to Top