Skip to main content

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)


Project details


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

django_jalali_date-0.1.10-py2-none-any.whl (194.6 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page