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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_city-0.0.4-py3-none-any.whl (5.4 kB) Copy SHA256 hash SHA256 Wheel 3.5
django-city-0.0.4.tar.gz (3.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page