get rid of is_admin(), instead check for django permissions. a couple things were using is_admin(), so now there's an example of the permission adding and usage, as those were ported
19 lines
416 B
Python
19 lines
416 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('twitter', '0002_auto_20150616_2022'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterModelOptions(
|
|
name='twitterclient',
|
|
options={'permissions': (('send_tweets', 'Can send tweets via IRC'),)},
|
|
),
|
|
]
|