port plugin to new passerelle django.apps support (#7515)

This commit is contained in:
Frédéric Péters 2015-06-15 14:54:54 +02:00
parent 568d159d3a
commit 56ac3511ce
1 changed files with 5 additions and 4 deletions

View File

@ -14,12 +14,13 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.utils.translation import ugettext as _
import django.apps
class Plugin(object):
def get_apps(self):
return [__name__]
class AppConfig(django.apps.AppConfig):
name = 'passerelle_montpellier_encombrants'
def get_after_urls(self):
from . import urls
return urls.urlpatterns
default_app_config = 'passerelle_montpellier_encombrants.AppConfig'