Skip to main content

Fixed CityAdminMixin change_view error

Project description

一个基于django的城市模块

快速开始:

安装django-city:

pip install django-city

修改setttings.py:

INSTALLED_APPS = (
    ...
    'city',
    ...
)

在admin中使用:

from city.admin import CityAdminMixin

class DemoAdmin(CityAdminMixin, admin.ModelAdmin):
    pass

在views中使用:

from city.views import CityViewMixin

class DemoView(CityViewMixin):
    pass

版本更改:

  • v0.0.2 添加`CityViewMixin`

  • v0.0.1 第一版

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-city-0.0.4.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

django_city-0.0.4-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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