Jalali Date support for user interface. Easy conversion of DateTimeFiled to JalaliDateTimeField within the admin site.
Project description
# django-jalali-date
Jalali Date support for user interface. Easy conversion of DateTimeFiled to JalaliDateTimeField within the admin site.
----------
**DEPENDENCY**
To use this module you need to install jdatetime(and of course you need django) module which you can install it with easy_install or pip
----------
**INSTALL**
pip install django-jalali-date
----------
**USAGE**
settings.py
INSTALLED_APPS = [
...
'jalali_date',
...
]
admin.py
from django.contrib import admin
from jalali_date import admin as j_admin
class MyInlines1(j_admin.TabularInline):
model = SecendModel
class MyInlines2(j_admin.StackedInline):
model = ThirdModel
@admin.register(FirstModel)
class FirstModelAdmin(j_admin.ModelAdmin):
inlines = (MyInlines1, MyInlines2, )
![example](http://bayanbox.ir/view/2877111068605695571/Screenshot-from-2016-07-26-01-37-07.png)
Jalali Date support for user interface. Easy conversion of DateTimeFiled to JalaliDateTimeField within the admin site.
----------
**DEPENDENCY**
To use this module you need to install jdatetime(and of course you need django) module which you can install it with easy_install or pip
----------
**INSTALL**
pip install django-jalali-date
----------
**USAGE**
settings.py
INSTALLED_APPS = [
...
'jalali_date',
...
]
admin.py
from django.contrib import admin
from jalali_date import admin as j_admin
class MyInlines1(j_admin.TabularInline):
model = SecendModel
class MyInlines2(j_admin.StackedInline):
model = ThirdModel
@admin.register(FirstModel)
class FirstModelAdmin(j_admin.ModelAdmin):
inlines = (MyInlines1, MyInlines2, )
![example](http://bayanbox.ir/view/2877111068605695571/Screenshot-from-2016-07-26-01-37-07.png)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-jalali-date-0.1.7.tar.gz
(178.2 kB
view hashes)