slashmili / django-jalali

Jalali DateField support for Django model
http://pypi.python.org/pypi/django_jalali
BSD 3-Clause "New" or "Revised" License
258 stars 52 forks source link

I added the description on how to add a default value for jalali django field. #111

Closed typerhack closed 4 years ago

typerhack commented 4 years ago

I added the description on how to add a default value for jalali django feild. I had a little typo on the first PR. This one has no issue

hramezani commented 4 years ago

@typerhack Thanks. I've created #112 to fix the default value problem.

typerhack commented 4 years ago

I found an easier solution to the problem I added it to the read me file. using the following code would prevent errors and also will make the field dynamic. it is also way more understandable.

default=jdatetime.datetime.now

hramezani commented 4 years ago

Fixed in #112