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.

Files for django-city, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size django_city-0.0.4-py3-none-any.whl (5.4 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size django-city-0.0.4.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page