From ea4bd854786526e00e7b7524f6df14771987198b Mon Sep 17 00:00:00 2001 From: igor Date: Fri, 17 May 2024 18:22:59 +0200 Subject: [PATCH 1/2] django 5 --- pyproject.toml | 2 +- requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 172c214..aa770f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "django-badges" -version = "1.1.6" +version = "1.1.7" authors = [ {name = "James Robert"}, {email = "jiaaro@gmail.com"} diff --git a/requirements.txt b/requirements.txt index 69b0255..533a3a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -Django==4.2.6 -Pillow==10.0.1 +Django==5.0.6 +Pillow==10.3.0 From 4f7081afe7ddfd516b1ca6d735583303d6d3cfc4 Mon Sep 17 00:00:00 2001 From: igor Date: Fri, 17 May 2024 18:24:11 +0200 Subject: [PATCH 2/2] not needed --- badges/south_migrations/0001_initial.py | 90 ------------------------- badges/south_migrations/__init__.py | 1 - 2 files changed, 91 deletions(-) delete mode 100644 badges/south_migrations/0001_initial.py delete mode 100644 badges/south_migrations/__init__.py diff --git a/badges/south_migrations/0001_initial.py b/badges/south_migrations/0001_initial.py deleted file mode 100644 index 5ebdac7..0000000 --- a/badges/south_migrations/0001_initial.py +++ /dev/null @@ -1,90 +0,0 @@ -# -*- coding: utf-8 -*- -from south.utils import datetime_utils as datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - # Adding model 'Badge' - db.create_table('badges_badge', ( - ('id', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)), - ('level', self.gf('django.db.models.fields.CharField')(max_length=1)), - ('icon', self.gf('django.db.models.fields.files.ImageField')(max_length=100)), - )) - db.send_create_signal('badges', ['Badge']) - - # Adding model 'BadgeToUser' - db.create_table('badges_badgetouser', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('badge', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['badges.Badge'])), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), - ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - )) - db.send_create_signal('badges', ['BadgeToUser']) - - - def backwards(self, orm): - # Deleting model 'Badge' - db.delete_table('badges_badge') - - # Deleting model 'BadgeToUser' - db.delete_table('badges_badgetouser') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'badges.badge': { - 'Meta': {'object_name': 'Badge'}, - 'icon': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'}), - 'level': ('django.db.models.fields.CharField', [], {'max_length': '1'}), - 'user': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['badges.BadgeToUser']", 'to': "orm['auth.User']"}) - }, - 'badges.badgetouser': { - 'Meta': {'object_name': 'BadgeToUser'}, - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['badges.Badge']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['badges'] \ No newline at end of file diff --git a/badges/south_migrations/__init__.py b/badges/south_migrations/__init__.py deleted file mode 100644 index 7902379..0000000 --- a/badges/south_migrations/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__author__ = 'igor'