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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_jalali_date-0.1.10-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a351ef3ad0ccaaf9d6105dd2ebc340c085af067a2592eb018ac1b5140ef0df56 |
|
MD5 | 653ffcb62443cc9781702e343f0ab81a |
|
BLAKE2b-256 | 7451b1af871cc01fae0ea038fe6b4b598fd4e99d0bd9b6b76a95911fb0dadfc3 |