port plugin to new passerelle django.apps support (#7515)
This commit is contained in:
parent
568d159d3a
commit
56ac3511ce
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue